From 04816d4379fe20c687a0ff76afe8e03d343656e1 Mon Sep 17 00:00:00 2001 From: NC Date: Thu, 2 May 2024 17:38:23 +0800 Subject: [PATCH] chore: bump node version in GitHub workflows (#372) * Upgrade setup-node action and node version * Update .github/workflows/test.yml Co-authored-by: tuyennhv --------- Co-authored-by: tuyennhv --- .github/workflows/benchmark.yml | 4 ++-- .github/workflows/cd-manual.yml | 4 ++-- .github/workflows/cd.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 02c2991f..0e136dcf 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -22,10 +22,10 @@ jobs: steps: - uses: actions/checkout@v3 - run: corepack enable - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: cache: yarn - node-version: 18 + node-version: 20 - run: yarn --immutable && yarn build && yarn generate - name: Run benchmarks diff --git a/.github/workflows/cd-manual.yml b/.github/workflows/cd-manual.yml index c73ffabb..c910461b 100644 --- a/.github/workflows/cd-manual.yml +++ b/.github/workflows/cd-manual.yml @@ -11,10 +11,10 @@ jobs: steps: - uses: actions/checkout@v3 - run: corepack enable - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: cache: yarn - node-version: '16' + node-version: '20' - name: Bootstrap run: yarn --immutable - name: Build diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index bae25e03..7cecf87e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -31,10 +31,10 @@ jobs: - run: corepack enable - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: 16 + node-version: 20 registry-url: 'https://registry.npmjs.org' if: ${{ steps.release.outputs.releases_created }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10492a0c..35e7a7eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,11 +9,11 @@ jobs: strategy: fail-fast: false matrix: - node: [16, 18] + node: [18, 20] steps: - uses: actions/checkout@v3 - run: corepack enable - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: ${{matrix.node}} cache: yarn