chore: update Node.js to 18.20.4 #1082
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
concurrency: | |
# Group concurrency on workflow, then: | |
# - Is merge run? Group on branch name (`refs/heads/main`) | |
# - Is pull request? Group on pull request branch name, for example `feat/add-awesome-feature` | |
group: >- | |
${{ github.workflow }}-${{ | |
github.event_name == 'push' | |
&& github.ref | |
|| github.head_ref | |
}} | |
# Run merge workflows in sequence to prevent parallel deployments and releases | |
# Cancel stale pull request runs in progress for the same branch | |
cancel-in-progress: ${{ github.event_name != 'push' }} | |
env: | |
is-merge-to-main: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
NODE_OPTIONS: --max-old-space-size=6144 | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
with: | |
# Required by nrwl/nx-set-shas | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v4 | |
- name: Set up Node.js and Yarn | |
uses: ./.github/actions/setup-node | |
- name: Install package dependencies | |
run: yarn install --frozen-lockfile --no-interactive | |
- name: Check formatting | |
run: yarn nx format:check | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js and Yarn | |
uses: ./.github/actions/setup-node | |
- name: Install package dependencies | |
run: yarn install --frozen-lockfile --no-interactive | |
- name: Lint workspace | |
run: yarn nx workspace-lint | |
- name: Lint all projects | |
run: yarn lint | |
dead-code: | |
name: Dead code analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js and Yarn | |
uses: ./.github/actions/setup-node | |
- name: Install package dependencies | |
run: yarn install --frozen-lockfile --no-interactive | |
- name: Dead code analysis | |
run: yarn knip | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js and Yarn | |
uses: ./.github/actions/setup-node | |
- name: Install package dependencies | |
run: yarn install --frozen-lockfile --no-interactive | |
- name: Test | |
run: yarn test --ci --reporters=github-actions | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js and Yarn | |
uses: ./.github/actions/setup-node | |
- name: Install package dependencies | |
run: yarn install --frozen-lockfile --no-interactive | |
- name: Build | |
run: yarn build | |
- name: Bundle readme | |
run: cp README.md dist/packages/router-component-store/ | |
- name: '[Merge] Upload package bundle' | |
if: ${{ env.is-merge-to-main == 'true' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ngworker-router-component-store | |
path: dist/packages/router-component-store | |
if-no-files-found: error | |
retention-days: 7 |