Skip to content

Commit d355961

Browse files
committed
chore: update npm via npx to support OIDC trusted publishing on Ubuntu 24.04 runners
1 parent d971e6f commit d355961

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish-trusted.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
package-manager-cache: false
2626
registry-url: 'https://registry.npmjs.org'
2727

28+
# npm >= 11.5.1 is required for OIDC trusted publishing
29+
# npm self-upgrade is broken on ubuntu-24.04 runners (missing promise-retry)
30+
# Use npx to bootstrap a fresh npm copy that can perform the upgrade
31+
- name: Update npm for trusted publishing
32+
run: npx -y npm@latest install -g npm@latest
33+
2834
- name: Install pnpm
2935
run: |
3036
npm install -g [email protected]

0 commit comments

Comments
 (0)