Skip to content

Commit 04fc391

Browse files
committed
Install pnpm in GitHub CI
1 parent cdd1a47 commit 04fc391

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ jobs:
1717
with:
1818
persist-credentials: false
1919

20+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.0.0
21+
with:
22+
node-version: "24"
23+
package-manager-cache: false
24+
25+
- name: Enable pnpm
26+
run: |
27+
corepack enable
28+
corepack prepare pnpm@8.15.9 --activate
29+
2030
- name: Run base CI checks
2131
run: ./scripts/ci.sh
2232

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
## [2026-05-09 11:18] | Task: 修复 GitHub CI pnpm 环境
2+
3+
### Execution Context
4+
5+
- **Agent ID**: `Codex`
6+
- **Base Model**: `GPT-5`
7+
- **Runtime**: `Codex CLI`
8+
9+
### User Query
10+
11+
> 发布前后要验证,保持 GitHub CI 可用。
12+
13+
### Changes Overview
14+
15+
**Scope:** GitHub Actions CI.
16+
17+
**Key Actions:**
18+
19+
- **CI setup**: 在 `ci.yml` 中加入 pinned `actions/setup-node`,并通过 corepack
20+
激活仓库声明的 `pnpm@8.15.9`
21+
22+
### Design Intent (Why)
23+
24+
`scripts/ci.sh` 已经把 JS workspace 测试纳入基础 CI;GitHub runner 默认没有
25+
pnpm,因此 workflow 需要显式准备 Node/pnpm 环境,避免远端 CI 与本地验证不一致。
26+
27+
### Files Modified
28+
29+
- `.github/workflows/ci.yml`

0 commit comments

Comments
 (0)