From ce286534cbb9c8c61572f9330b053fe077dc5965 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Thu, 3 Oct 2024 17:40:19 +0100 Subject: [PATCH] ci: test node 18/20/22, drop 16 --- .github/workflows/build-and-test.yml | 12 ++++++------ .github/workflows/publish.yml | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ab53435..2ab8e9b 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -11,14 +11,14 @@ jobs: runs-on: macos-latest strategy: matrix: - node-version: [16.x, 18.x] + node-version: [18.x, 20.x, 22.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: ./scripts/build.sh @@ -28,14 +28,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 18.x] + node-version: [18.x, 20.x, 22.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: ./scripts/build.sh diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bc3f266..980f118 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,7 +10,7 @@ jobs: if: ${{ github.event.client_payload.release_type == 'major' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: fregante/setup-git-user@v1 @@ -30,11 +30,11 @@ jobs: if: ${{ github.event.client_payload.release_type == 'minor' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: fregante/setup-git-user@v1 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org' @@ -50,11 +50,11 @@ jobs: if: ${{ github.event.client_payload.release_type == 'patch' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: fregante/setup-git-user@v1 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org'