From 81669f179a80cd061239e8cebb891981d66d5788 Mon Sep 17 00:00:00 2001 From: AmisKwok Date: Wed, 7 Oct 2026 02:14:53 +0800 Subject: [PATCH 1/2] ci: bump actions/setup-node to v7 in the docs workflow v4 targets the Node.js 20 runtime, which GitHub is deprecating and was being force-run on Node.js 24 with a warning. v7 targets Node.js 24, matching the actions/checkout version already used in this repository. --- .github/workflows/docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a437ec4..5c6da2b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -34,7 +34,10 @@ jobs: steps: - uses: actions/checkout@v7 - - uses: actions/setup-node@v4 + # v7 targets the Node.js 24 runtime; v4 targeted Node.js 20, which GitHub + # is deprecating (it was being force-run on Node.js 24 with a warning). + # v7 使用 Node.js 24 runtime;v4 面向已弃用的 Node.js 20(会被强制以 Node 24 运行并告警)。 + - uses: actions/setup-node@v7 with: node-version: '20' cache: 'npm' From 67dba2363a7f0f791e9db6a3ef442c502abe1a1a Mon Sep 17 00:00:00 2001 From: AmisKwok Date: Wed, 7 Oct 2026 02:16:14 +0800 Subject: [PATCH 2/2] ci: build the docs site on Node.js 22 instead of 20 Node.js 20 has reached end of maintenance. 22 is the current LTS and is well supported by Next.js 14, which builds the Nextra site. --- .github/workflows/docs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5c6da2b..4376923 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -39,7 +39,9 @@ jobs: # v7 使用 Node.js 24 runtime;v4 面向已弃用的 Node.js 20(会被强制以 Node 24 运行并告警)。 - uses: actions/setup-node@v7 with: - node-version: '20' + # Node.js 20 has reached end of maintenance; 22 is the LTS used to + # build the site. Node.js 20 已结束维护期,改用 LTS 版本 22 构建站点。 + node-version: '22' cache: 'npm' cache-dependency-path: website/package-lock.json