Skip to content

build: polyfill across steps #373

build: polyfill across steps

build: polyfill across steps #373

Workflow file for this run

name: npm-publish
on:
push:
branches:
- main
workflow_dispatch:
jobs:
lint:
name: lint-packages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
with:
path: |
node_modules
packages/*/node_modules
key: lock-${{ hashFiles('yarn.lock') }}
restore-keys: |
lock-
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20.2.x'
registry-url: 'https://registry.npmjs.org'
- name: Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
set -exu
yarn --immutable
- run: yarn moon :lint
docs:
name: build-docs
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
with:
path: |
node_modules
packages/*/node_modules
key: lock-${{ hashFiles('yarn.lock') }}
restore-keys: |
lock-
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20.2.x'
registry-url: 'https://registry.npmjs.org'
- name: Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
set -exu
yarn --immutable
- name: Generate docs
run: |
set -exu
yarn docs
- name: Push to wiki repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.WIKI_PAT }}
with:
source-directory: 'docs'
destination-github-username: 'DecentM'
destination-repository-name: 'concourse-ts.wiki'
user-email: 41898282+github-actions[bot]@users.noreply.github.com
target-branch: master
build-and-test:
name: build-packages
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache
uses: actions/cache@v3
id: cache-node-modules
with:
path: |
node_modules
packages/*/node_modules
key: lock-${{ hashFiles('yarn.lock') }}
restore-keys: |
lock-
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20.2.x'
registry-url: 'https://registry.npmjs.org'
- name: Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
set -exu
yarn --immutable
- name: Build packages
run: yarn moon :build
- name: Test packages
run: yarn moon '#testable:test'