Skip to content

Commit 9c10f2c

Browse files
authored
fix(ci): pin npm version to avoid self-upgrade corruption (#785)
npm install -g npm@latest fails on GitHub Actions runners when npm tries to replace its own modules mid-installation, corrupting the promise-retry dependency. Pin to npm@11.5.1 which is the minimum version needed for OIDC trusted publishing.
1 parent a4f9948 commit 9c10f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ jobs:
317317
- name: Ensure npm 11.5.1+ for trusted publishing
318318
run: |
319319
echo "Current npm version: $(npm --version)"
320-
npm install -g npm@latest
320+
npm install -g npm@11.5.1
321321
echo "Updated npm version: $(npm --version)"
322322
323323
- name: Download artifacts

0 commit comments

Comments
 (0)