Skip to content

Commit c127a14

Browse files
committed
chore(ci): 升级pnpm action版本并固定版本号
升级 pnpm/action-setup 从 v5 到 v6 版本,并显式固定 pnpm 版本为 10.25.0, 以避免 CI 与本地环境在解析 lockfile 时出现差异问题。
1 parent 4be54fa commit c127a14

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/qa-benchmark.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
fetch-depth: 0
2626

2727
- name: Install pnpm
28-
uses: pnpm/action-setup@v5
28+
uses: pnpm/action-setup@v6
29+
with:
30+
# 显式固定 pnpm 版本,避免 CI 与本地解析 lockfile 时出现差异。
31+
version: 10.25.0
2932

3033
- name: Setup Node
3134
uses: actions/setup-node@v6

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
# 1. 安装 pnpm
6767
- name: Install pnpm
6868
uses: pnpm/action-setup@v6
69+
with:
70+
# 显式固定 pnpm 版本,避免 CI 与本地解析 lockfile 时出现差异。
71+
version: 10.25.0
6972

7073
# 2. 安装 Node 并开启 pnpm 缓存 (这是 Monorepo 速度的关键)
7174
- name: Setup Node

0 commit comments

Comments
 (0)