From 3d23ceb46719710f84dee63be7290d9196d798ff Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Thu, 3 Sep 2026 12:17:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20pnpm=20=E7=89=88=E6=9C=AC=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E7=94=B1=20packageManager=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=BE=9B=E7=89=88=EF=BC=8C=E7=A7=BB=E9=99=A4=20action=20?= =?UTF-8?q?=E6=98=BE=E5=BC=8F=20version=20=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 15 +++++++++------ .github/workflows/release.yml | 5 +++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6253078..e0494cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32b625e..670dfa7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: