Skip to content

Commit 0047290

Browse files
ntatoudclaude
andauthored
fix: install latest npm for trusted publishing (#7)
* fix: remove registry-url from setup-node to enable npm trusted publishing setup-node with registry-url creates .npmrc with an empty NODE_AUTH_TOKEN, which prevents npm from using OIDC for authentication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: install latest npm for trusted publishing OIDC support Node 20's bundled npm is too old to support OIDC-based trusted publishing. Installing npm@latest enables token-free publishing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5066551 commit 0047290

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
node-version: 20
3030
cache: pnpm
3131

32+
- name: Install latest npm
33+
run: npm install -g npm@latest
34+
3235
- name: Install dependencies
3336
run: pnpm install
3437

0 commit comments

Comments
 (0)