Skip to content

Commit 6995130

Browse files
fix(ci): restore npm registry-url for OIDC trusted publish
Even with Node 22 and id-token permissions, npm publish was failing in release with ENEEDAUTH, meaning trusted publishing was not being engaged.\n\nsetup-node's registry-url configuration is part of npm's recommended trusted publishing setup. This restores registry-url in all release jobs while keeping token cleanup to avoid stale token fallback.\n\nRef: #9
1 parent 7bc0718 commit 6995130

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,7 @@ jobs:
3232
- uses: actions/setup-node@v4
3333
with:
3434
node-version: 22
35+
registry-url: https://registry.npmjs.org
3536
cache: npm
3637

3738
- name: Use npm 11.5.1+ for OIDC trusted publishing compatibility
@@ -163,6 +164,7 @@ jobs:
163164
- uses: actions/setup-node@v4
164165
with:
165166
node-version: 22
167+
registry-url: https://registry.npmjs.org
166168
cache: npm
167169

168170
- name: Use npm 11.5.1+ for OIDC trusted publishing compatibility
@@ -227,6 +229,7 @@ jobs:
227229
- uses: actions/setup-node@v4
228230
with:
229231
node-version: 22
232+
registry-url: https://registry.npmjs.org
230233
cache: npm
231234

232235
- name: Use npm 11.5.1+ for OIDC trusted publishing compatibility

0 commit comments

Comments
 (0)