fix(ci): pnpm 版本统一由 packageManager 字段供版,移除 action 显式 version 输入

This commit is contained in:
Menghuan1918
2026-09-03 12:17:28 +08:00
parent 35111e163c
commit 3d23ceb467
2 changed files with 12 additions and 8 deletions
+9 -6
View File
@@ -22,9 +22,10 @@ jobs:
with:
# Tests run git log against this repository and need the full history.
fetch-depth: 0
# pnpm version is pinned via packageManager in package.json; the action
# reads it from there (specifying both makes action-setup fail on
# purpose with ERR_PNPM_BAD_PM_VERSION).
- uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/setup-node@v7
with:
node-version: 22
@@ -69,9 +70,10 @@ jobs:
with:
# Tests run git log against this repository and need the full history.
fetch-depth: 0
# pnpm version is pinned via packageManager in package.json; the action
# reads it from there (specifying both makes action-setup fail on
# purpose with ERR_PNPM_BAD_PM_VERSION).
- uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/setup-node@v7
with:
node-version: 22
@@ -109,9 +111,10 @@ jobs:
steps:
- uses: actions/checkout@v7
# pnpm version is pinned via packageManager in package.json; the action
# reads it from there (specifying both makes action-setup fail on
# purpose with ERR_PNPM_BAD_PM_VERSION).
- uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/setup-node@v7
with:
+3 -2
View File
@@ -51,9 +51,10 @@ jobs:
# Tests run git log against this repository and need full history.
fetch-depth: 0
# pnpm version is pinned via packageManager in package.json; the action
# reads it from there (specifying both makes action-setup fail on
# purpose with ERR_PNPM_BAD_PM_VERSION).
- uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/setup-node@v7
with: