ci: pin pnpm to v9 via pnpm/action-setup

pnpm 10 exits non-zero on [ERR_PNPM_IGNORED_BUILDS] by default, which
broke CI after the global pnpm version on GitHub runners bumped.

Replace ad-hoc `npm i -g pnpm` calls with pnpm/action-setup@v4 pinned to
version 9 across build-ci.yml, build-pr.yml, and drop the redundant
Install pnpm step from pr-build-run.ts.
This commit is contained in:
时瑾 committed 2026-05-16 14:07:11 +08:00
1 parent b253fd82c4
commit 285ba9cf2d
3 files changed
+26 -9

No files matched your search

+14
View File
@@ -157,6 +157,13 @@ jobs:
with:
node-version: 24
# 固定 pnpm v9 (避免 pnpm 10 对 ignored builds 默认非零退出)
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
# 获取最新 release tag 并生成版本号
- name: Generate Version
id: version
@@ -229,6 +236,13 @@ jobs:
with:
node-version: 24
# 固定 pnpm v9 (避免 pnpm 10 对 ignored builds 默认非零退出)
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
# 获取最新 release tag 并生成版本号
- name: Generate Version
id: version