fix(ci): pnpm 版本统一由 packageManager 字段供版,移除 action 显式 version 输入
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user