From 1cb1985d24ae0de94e7f9268150ef0d87150fc2a Mon Sep 17 00:00:00 2001 From: Dany Castillo <31006608+dcastil@users.noreply.github.com> Date: Sun, 3 Mar 2024 16:46:28 +0100 Subject: [PATCH] upgrade CI jobs to Node.js 20.11.1 --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/npm-publish-dev.yml | 8 ++++---- .github/workflows/npm-publish.yml | 8 ++++---- .github/workflows/size.yml | 8 ++++---- .github/workflows/test.yml | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 75e9200f..b7e412c9 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -17,17 +17,17 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Use Node.js 18 + - name: Use Node.js 20 uses: actions/setup-node@v4 with: - node-version: 18.17.1 + node-version: 20.11.1 - name: Use node_modules cache uses: actions/cache@v3 with: path: node_modules - key: yarn-node-18-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-18-lock- + yarn-node-20-lock- - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: diff --git a/.github/workflows/npm-publish-dev.yml b/.github/workflows/npm-publish-dev.yml index 6bbd13a8..4db7ef5b 100644 --- a/.github/workflows/npm-publish-dev.yml +++ b/.github/workflows/npm-publish-dev.yml @@ -11,19 +11,19 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - name: Use Node.js 18 + - name: Use Node.js 20 uses: actions/setup-node@v4 with: - node-version: 18.17.1 + node-version: 20.11.1 # More info: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry registry-url: 'https://registry.npmjs.org' - name: Use node_modules cache uses: actions/cache@v3 with: path: node_modules - key: yarn-node-18-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-18-lock- + yarn-node-20-lock- - run: yarn install --frozen-lockfile - run: yarn build - uses: actions/upload-artifact@v4 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index b33066e2..8dc380d7 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,17 +11,17 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - name: Use Node.js 18 + - name: Use Node.js 20 uses: actions/setup-node@v4 with: - node-version: 18.17.1 + node-version: 20.11.1 - name: Use node_modules cache uses: actions/cache@v3 with: path: node_modules - key: yarn-node-18-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-18-lock- + yarn-node-20-lock- - run: yarn install --frozen-lockfile - run: yarn lint - run: yarn test --ci --coverage --maxWorkers=2 diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 7627edc7..1ec4920c 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -11,17 +11,17 @@ jobs: CI_JOB_NUMBER: 1 steps: - uses: actions/checkout@v4 - - name: Use Node.js 18 + - name: Use Node.js 20 uses: actions/setup-node@v4 with: - node-version: 18.17.1 + node-version: 20.11.1 - name: Use node_modules cache uses: actions/cache@v3 with: path: node_modules - key: yarn-node-18-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-18-lock- + yarn-node-20-lock- - run: yarn install --frozen-lockfile - uses: andresz1/size-limit-action@v1 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c852235c..e769ec2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,17 +11,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Use Node.js 18 + - name: Use Node.js 20 uses: actions/setup-node@v4 with: - node-version: 18.17.1 + node-version: 20.11.1 - name: Use node_modules cache uses: actions/cache@v3 with: path: node_modules - key: yarn-node-18-lock-${{ hashFiles('yarn.lock') }} + key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }} restore-keys: | - yarn-node-18-lock- + yarn-node-20-lock- - run: yarn install --frozen-lockfile - run: yarn lint - run: yarn test --ci --coverage --maxWorkers=2