build(deps-dev): update node.js to v20 - autoclosed #1838
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- next | |
- alpha | |
- beta | |
jobs: | |
deduplicate: | |
name: Deduplicate Jobs | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@master | |
with: | |
concurrent_skipping: same_content_newer | |
build: | |
name: Build + Test + Release / Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
if: ${{ needs.deduplicate.outputs.should_skip != 'true' }} | |
strategy: | |
matrix: | |
node: ['14', '16', '18'] | |
steps: | |
- name: Get Yarn cache path | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Setup node | |
uses: actions/setup-node@master | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Load Yarn cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: ${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run lint + tests | |
run: yarn validate | |
- name: Upload Coverage / Release | |
run: yarn ci-after-success | |
if: ${{ matrix.node == '16' }} | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SKIP_CODECOV: true |