From e7626077ed22b2bcbfa71b0403a58ac187c57cba Mon Sep 17 00:00:00 2001 From: Remi Cattiau Date: Wed, 12 Jun 2024 04:04:01 -0700 Subject: [PATCH] fix: allow Node 22 and use it by default (#587) Signed-off-by: Remi Cattiau --- .github/workflows/api-docs.yaml | 2 +- .github/workflows/nodejs-ci-action.yml | 22 +++++++++++----------- .github/workflows/publish-to-npm.yml | 6 +++--- package.json | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/api-docs.yaml b/.github/workflows/api-docs.yaml index c5f38fd3..8a47eaa6 100644 --- a/.github/workflows/api-docs.yaml +++ b/.github/workflows/api-docs.yaml @@ -8,7 +8,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Generate API documentation run: npm install && npm run build:schema && npm run generate-docs diff --git a/.github/workflows/nodejs-ci-action.yml b/.github/workflows/nodejs-ci-action.yml index 8505fd07..93b53b23 100644 --- a/.github/workflows/nodejs-ci-action.yml +++ b/.github/workflows/nodejs-ci-action.yml @@ -15,12 +15,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 18.x, 20.x, 21.x] + node-version: [16.x, 18.x, 20.x, 22.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Test on Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm ci @@ -31,18 +31,18 @@ jobs: name: Code coverage runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - name: Generate coverage report - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 22.x - run: npm ci - run: npm run build --if-present - run: npm run coverage - name: Upload coverage report to storage - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: coverage path: coverage/lcov.info @@ -52,15 +52,15 @@ jobs: needs: coverage runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Download coverage report from storage - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: coverage - name: Upload coverage report to codacy - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 22.x - run: | ( [[ "${CODACY_PROJECT_TOKEN}" != "" ]] && npm run coverage-publish ) || echo "Coverage report not published" env: diff --git a/.github/workflows/publish-to-npm.yml b/.github/workflows/publish-to-npm.yml index 838c16f9..219c833f 100644 --- a/.github/workflows/publish-to-npm.yml +++ b/.github/workflows/publish-to-npm.yml @@ -9,10 +9,10 @@ jobs: contents: read id-token: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: '22.x' registry-url: 'https://registry.npmjs.org' - run: npm install -g npm - run: npm ci diff --git a/package.json b/package.json index 123eb331..b2326f9f 100644 --- a/package.json +++ b/package.json @@ -160,6 +160,6 @@ }, "types": "./dist/index.d.ts", "engines": { - "node": ">=16 <=21" + "node": ">=16 <=22" } }