Skip to content

Commit bbc80bb

Browse files
author
shijiashuai
committed
ci: align frontend workflow with Node 22
Keep GitHub-hosted installs compatible with the repo's current frontend dependency engine requirements so the CI job can reach lint and test steps again.
1 parent 922c62e commit bbc80bb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Node
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: "18"
20+
node-version: "22"
2121
cache: npm
2222

2323
- name: Install dependencies
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Workflow Node 22 CI 调整
2+
3+
日期:2026-03-13
4+
5+
## 变更内容
6+
7+
- 将前端 CI 的 Node 版本从 `18` 提升到 `22`
8+
- 保持 `npm ci`、lint 与测试流程不变,仅修正 Hosted Runner 上的运行时版本
9+
- 避免依赖树中的 `EBADENGINE` 继续导致前端 job 在安装阶段失败
10+
11+
## 背景
12+
13+
该仓库前端依赖已要求 `Node 20``>=22`,原先主线 CI 仍固定在 Node 18,导致 GitHub Hosted Runner 上的 `npm ci` 无法通过。本次调整只收敛运行时版本,不改变项目构建逻辑。

0 commit comments

Comments
 (0)