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:
3 files changed
+26
-9
No files matched your search
@@ -22,11 +22,7 @@ interface BuildStep {
|
||||
|
||||
function getCommonSteps (): BuildStep[] {
|
||||
return [
|
||||
{
|
||||
name: 'Install pnpm',
|
||||
command: 'npm i -g pnpm',
|
||||
errorMessage: 'Failed to install pnpm',
|
||||
},
|
||||
// pnpm 已通过 GitHub Action (pnpm/action-setup) 预安装并固定 v9, 此处无需再次安装
|
||||
{
|
||||
name: 'Install dependencies',
|
||||
command: 'pnpm i',
|
||||
|
||||
Reference in new issue
Block a user