Skip to content

Commit 0919a9d

Browse files
ci(asm): pin pnpm via action-setup to avoid ERR_PNPM_IGNORED_BUILDS
The ASM workflow installed pnpm with 'npm install --global pnpm', which resolves to the latest pnpm release. Recent pnpm releases escalate 'Ignored build scripts' from a warning to a hard error (ERR_PNPM_IGNORED_BUILDS), which makes 'pnpm install --frozen-lockfile' fail for any project with transitive build scripts that aren't on an explicit allow-list. The asm projects pull in bufferutil + utf-8-validate via @solana/web3.js -> ws. Switch to pnpm/action-setup@v4 (which the anchor, native, pinocchio, and typescript workflows already use). That action currently installs pnpm 10.33.0, which still treats this as a warning and lets the install succeed.
1 parent fcfd6d1 commit 0919a9d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/solana-asm.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ jobs:
103103
failed_projects: ${{ steps.set-failed.outputs.failed_projects }}
104104
steps:
105105
- uses: actions/checkout@v4
106+
# The previous `npm install --global pnpm` step picked up a pnpm release that
107+
# treats ignored build scripts (bufferutil, utf-8-validate) as a hard error and
108+
# fails `pnpm install --frozen-lockfile`. The other workflows (anchor, native,
109+
# pinocchio, typescript) use pnpm/action-setup@v4, which pins a known-good pnpm
110+
# release (10.33.0 at time of writing) that only warns. Match that here.
111+
- uses: pnpm/action-setup@v4
106112
- name: Use Node.js
107113
uses: actions/setup-node@v4
108114
with:
@@ -180,8 +186,8 @@ jobs:
180186
# Make the script executable
181187
chmod +x build_and_test.sh
182188
183-
# Install pnpm
184-
npm install --global pnpm
189+
# pnpm is installed by pnpm/action-setup@v4 above. Avoid `npm install --global pnpm`
190+
# here because that resolves to pnpm 10+, which errors on ignored build scripts.
185191
186192
# Install sbpf assembler
187193
cargo install --git https://github.com/blueshift-gg/sbpf.git

0 commit comments

Comments
 (0)