From 04bf98554eebdb7683248773eb9ec9f6b4173847 Mon Sep 17 00:00:00 2001 From: hugoer Date: Fri, 4 Sep 2026 10:12:17 +0200 Subject: [PATCH] ci: move the actions off the deprecated node20 runtime actions/checkout@v4 and actions/setup-node@v4 declare runs.using: node20, so every job printed the Node 20 deprecation notice while GitHub force-ran them on Node 24 anyway. Both current majors declare node24. This is the runtime the runner uses to execute an action's own JavaScript. It is unrelated to matrix.node-version and to engines: the Node the package is tested on is unchanged. Nothing here trips the majors' breaking changes. checkout v7 blocks fork-PR checkout under pull_request_target and workflow_run, and all four workflows trigger on pull_request. checkout v6 persists credentials to a separate file, and nothing pushes from CI. setup-node v6 limits automatic caching to npm, and every job already sets cache: npm explicitly. Closes #25 --- .github/workflows/codeql.yml | 2 +- .github/workflows/lint.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- .github/workflows/types.yml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a21a6c7..4cac3c2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -19,7 +19,7 @@ jobs: contents: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: github/codeql-action/init@v4 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6dfa49a..6ade4ae 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v7 with: node-version: 22 cache: npm diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dce2252..5498c22 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,10 +15,10 @@ jobs: node-version: [22, 24] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version: ${{ matrix.node-version }} cache: npm diff --git a/.github/workflows/types.yml b/.github/workflows/types.yml index e6e2225..ce10080 100644 --- a/.github/workflows/types.yml +++ b/.github/workflows/types.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v7 with: node-version: 22 cache: npm