Skip to content

Commit e9c50be

Browse files
committed
refactor(workflow): 移除 GitHub Actions 中的 pnpm 版本显式声明
移除 .github/workflows/qa-benchmark.yml 和 test.yml 中对 pnpm 版本的显式声明, 改为由 package.json 的 packageManager 字段统一决定版本,避免重复声明配置。
1 parent c127a14 commit e9c50be

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/qa-benchmark.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ jobs:
2424
with:
2525
fetch-depth: 0
2626

27+
# pnpm 版本统一由 package.json 的 packageManager 决定,避免与 action 输入重复声明。
2728
- name: Install pnpm
2829
uses: pnpm/action-setup@v6
29-
with:
30-
# 显式固定 pnpm 版本,避免 CI 与本地解析 lockfile 时出现差异。
31-
version: 10.25.0
3230

3331
- name: Setup Node
3432
uses: actions/setup-node@v6

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ jobs:
6464
fetch-depth: 0
6565

6666
# 1. 安装 pnpm
67+
# 版本统一由 package.json 的 packageManager 决定,避免与 action 输入重复声明。
6768
- name: Install pnpm
6869
uses: pnpm/action-setup@v6
69-
with:
70-
# 显式固定 pnpm 版本,避免 CI 与本地解析 lockfile 时出现差异。
71-
version: 10.25.0
7270

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

0 commit comments

Comments
 (0)