fix(ci): 精确锁定工作流Node.js版本为24.19.0以通过严格devEngines校验
Some checks are pending
Build and Release / Build Release Package (tar.gz, amd64, linux) (push) Waiting to run
Build and Release / Build Release Package (tar.gz, arm64, linux) (push) Waiting to run
Build and Release / Build Release Package (zip, amd64, windows) (push) Waiting to run

This commit is contained in:
xuans 2026-10-18 15:58:06 +08:00
parent b13cebbfcf
commit 94e31983bf
3 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
node-version: 24.19.0
- name: Setup Go
uses: actions/setup-go@v5

View File

@ -36,7 +36,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
node-version: 24.19.0
- name: Setup Go
uses: actions/setup-go@v5

View File

@ -3704,7 +3704,7 @@ P0-05 从 `[!]` 调整为 `[~]`,并未标记完成;P0-04 剩余门禁和全
## 2026年10月18日 修复 GitHub/Gitea CI 构建中 Node.js 版本漂移导致 EBADDEVENGINES
- [~] 需求确认:GitHub/Gitea Actions CI 运行 node-version: 24 时默认解析安装了最新版 Node.js v24.21.0,与 package.json 中 devEngines 严格锁定的 24.19.0 不匹配,触发 npm EBADDEVENGINES 致命错误中断构建。需将工作流中 Node.js 版本精准固定为 24.19.0。
- [ ] 修改 .github/workflows/release.yml 与 .gitea/workflows/release.yaml:将 node-version 由 24 改为精准匹配的 24.19.0。
- [ ] 运行本地单元测试(357 pass, 0 fail)验证工具链完整性。
- [ ] 提交修改并打标签更新推送到 git.pcux.cn 与 github.com。
- [✓] 需求确认:GitHub/Gitea Actions CI 运行 node-version: 24 时默认解析安装了最新版 Node.js v24.21.0,与 package.json 中 devEngines 严格锁定的 24.19.0 不匹配,触发 npm EBADDEVENGINES 致命错误中断构建。需将工作流中 Node.js 版本精准固定为 24.19.0。
- [✓] 修改 .github/workflows/release.yml 与 .gitea/workflows/release.yaml:将 node-version 由 24 改为精准匹配的 24.19.0。
- [✓] 运行本地单元测试(357 pass, 0 fail)验证工具链完整性。
- [✓] 提交修改并更新 v1.52.1 标签推送到 git.pcux.cn 与 github.com。