From b86c7d6f40581b0eec831591d80abf4c30a05ed0 Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Mon, 18 Nov 2024 09:07:16 +0100 Subject: [PATCH 1/2] Bump node to minimal supported version This action previously requested node-16 which is unsupported and was automatically bumped to the minimal supported version node-20. This triggered a warning for users: ``` The following actions use a deprecated Node.js version and will be forced to run on node20: boa-dev/criterion-compare-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ ``` --- .github/workflows/pr-main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index 05ccefd..c885323 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -15,7 +15,7 @@ jobs: - name: Check if generated code is correct uses: actions/setup-node@v3.6.0 with: - node-version: "16" + node-version: "20" - run: mv dist/index.js dist/index.js.new - run: npm ci - run: npm run build From 6464f56dee1c205152b6a72ce4f210e9cce775a2 Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Mon, 18 Nov 2024 09:09:28 +0100 Subject: [PATCH 2/2] Bump GH actions --- .github/workflows/checks.yml | 2 +- .github/workflows/pr-main.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 88888de..3fd7596 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -14,6 +14,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check code formatting run: npx prettier --check . diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index c885323..81be2eb 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check if generated code is correct - uses: actions/setup-node@v3.6.0 + uses: actions/setup-node@v4 with: node-version: "20" - run: mv dist/index.js dist/index.js.new