Skip to content

Commit 3e587e6

Browse files
authored
ci: install npm 11+ for trusted publishing (#28)
Trusted publishing requires npm CLI 11.5.1+, but Node 22.x bundles npm 10.x. This adds a step to install the latest npm before publishing. Fixes ENG-1912
1 parent 4d62806 commit 3e587e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- run: pnpm install --frozen-lockfile
3333
- run: pnpm build
3434

35+
- name: Install npm 11+ for trusted publishing
36+
run: npm install -g npm@latest
37+
3538
- name: Create Release (if needed)
3639
# Uses OIDC trusted publishing - no NPM_TOKEN needed
3740
# See: https://docs.npmjs.com/trusted-publishers

0 commit comments

Comments
 (0)