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

This commit is contained in:
Menghuan1918 committed 2026-09-03 12:17:28 +08:00
1 parent 35111e163c
commit 3d23ceb467
2 files changed
+12 -8

No files matched your search

+9 -6
View File
@@ -22,9 +22,10 @@ jobs:
with: with:
# Tests run git log against this repository and need the full history. # Tests run git log against this repository and need the full history.
fetch-depth: 0 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 - uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/setup-node@v7 - uses: actions/setup-node@v7
with: with:
node-version: 22 node-version: 22
@@ -69,9 +70,10 @@ jobs:
with: with:
# Tests run git log against this repository and need the full history. # Tests run git log against this repository and need the full history.
fetch-depth: 0 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 - uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/setup-node@v7 - uses: actions/setup-node@v7
with: with:
node-version: 22 node-version: 22
@@ -109,9 +111,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v7 - 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 - uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/setup-node@v7 - uses: actions/setup-node@v7
with: with:
+3 -2
View File
@@ -51,9 +51,10 @@ jobs:
# Tests run git log against this repository and need full history. # Tests run git log against this repository and need full history.
fetch-depth: 0 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 - uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/setup-node@v7 - uses: actions/setup-node@v7
with: with: