Skip to content

Commit 25d33a8

Browse files
authored
Merge pull request #2903 from glideapps/fix/publish-npm-pin-npm11
Pin publish workflow to npm 11 to fix broken npm publishing
2 parents eb665af + 9445a3b commit 25d33a8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish-npm.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ jobs:
2424
- uses: ./.github/workflows/setup
2525
# Trusted Publishing requires npm >= 11.5.1; the pinned Node
2626
# runtime ships an older npm, so upgrade it before publishing.
27-
- run: npm install -g npm@latest
27+
# Pinned to major 11: npm@latest moved to 12.0.0, which requires
28+
# Node ^22.22.2 || ^24.15.0 || >=26 and EBADENGINEs on our pinned
29+
# Node (.nvmrc), breaking every publish.
30+
- run: npm install -g npm@11
2831
# Run via npm so node_modules/.bin is on PATH (patch-npm-version.ts
2932
# is executed through its ts-node shebang).
3033
- run: npm run pub:npm

0 commit comments

Comments
 (0)