From c121fc981f11c9075afee35ffbcb7b023aaf38e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malcolm=20Nihl=C3=A9n?= Date: Fri, 2 Feb 2024 20:54:32 +0100 Subject: [PATCH] ci: update node and action versions (#182) --- .github/workflows/auto-merge.yml | 2 +- .github/workflows/commitlint.yml | 2 +- .github/workflows/lint.yml | 8 ++++---- .github/workflows/release.yml | 6 +++--- .github/workflows/test.yml | 8 ++++---- .nvmrc | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 54d41f1..6e38c8d 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -7,7 +7,7 @@ jobs: auto-merge: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ahmadnassri/action-dependabot-auto-merge@v2 with: target: minor diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index dcb06c4..a64ab4d 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -5,7 +5,7 @@ jobs: commitlint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e3203b..3eb9c24 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Use Node.js 20 - uses: actions/setup-node@v1 + - name: Use Node.js + uses: actions/setup-node@v4 with: - node-version: 20 + node-version-file: .nvmrc - run: npm ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90a7045..53f3cd1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: id-token: write # to enable use of OIDC for npm provenance steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Import scriptbot's GPG key for signing commits @@ -35,9 +35,9 @@ jobs: git_user_signingkey: true git_commit_gpgsign: true - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "lts/*" + node-version-file: .nvmrc - name: Install dependencies run: npm clean-install - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7169937..136a37e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,13 +12,13 @@ jobs: matrix: # If you change these, don't forget to update carryforward in the finish # step as well. - node-version: [14, 16, 18] + node-version: [14, 16, 18, 20] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} @@ -43,4 +43,4 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true - carryforward: "14,16,18" + carryforward: "14,16,18,20" diff --git a/.nvmrc b/.nvmrc index 98a61e1..07533ba 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.8 +v20.11