From 0aa82a16150383f0cea836492f2daba94c216f75 Mon Sep 17 00:00:00 2001 From: ykiko Date: Sat, 17 Oct 2026 19:54:58 +0800 Subject: [PATCH] ci: move the actions off Node 20 actions/checkout@v4, actions/setup-node@v4 and peter-evans/create-pull-request@v7 target Node 20, which the runners now force onto Node 24 with a deprecation warning in every deploy and in every caller's publish run. action.yml: checkout v7, as the rest of the repo uses, and create-pull-request v8. v8's action.yml differs from v7's only in the node24 runtime, so its inputs and the pull-request-number output the action reads are unchanged; it supports checkout v6+'s separately persisted credentials (since v7.0.9). deploy.yml: checkout v7 and setup-node v7. setup-node's automatic caching (v5+) needs a packageManager field, which package.json lacks, so the install is unchanged. peaceiris/actions-gh-pages@v4 already runs on Node 24. --- .github/workflows/deploy.yml | 4 ++-- action.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fd1370b96..0ba98e708 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,13 +15,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: # Full history: each page's "Last updated" comes from its last commit. fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version: '24' diff --git a/action.yml b/action.yml index c65bc1003..2de33fa1d 100644 --- a/action.yml +++ b/action.yml @@ -62,7 +62,7 @@ runs: esac - name: Checkout docs repo - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: repository: clice-io/docs # The repo is public, so a check needs no token of its own and runs @@ -146,7 +146,7 @@ runs: - name: Create Pull Request id: create-pr if: inputs.mode == 'publish' - uses: peter-evans/create-pull-request@v7 + uses: peter-evans/create-pull-request@v8 with: path: __docs_repo token: ${{ inputs.token }}