Skip to content

Commit 473c2cd

Browse files
jascalclaude
andcommitted
fix(ci): drop setup-node registry-url so pnpm uses OIDC
The v0.1.30 release 404'd on npm: actions/setup-node with registry-url writes an .npmrc with _authToken=${NODE_AUTH_TOKEN} and exports a dummy NODE_AUTH_TOKEN. pnpm sent that dummy as the bearer token instead of doing the OIDC exchange, so npm rejected the publish (masked as 404). Removing registry-url means no .npmrc and no dummy, so pnpm authenticates via OIDC against the default registry. pnpm stays on 10.x (10.33.0); pnpm 11 has an OIDC regression (pnpm#11513). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 57047a2 commit 473c2cd

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
- uses: actions/setup-node@v4
2929
with:
3030
node-version: '22'
31-
registry-url: 'https://registry.npmjs.org'
31+
# No registry-url on purpose: with it, setup-node writes an .npmrc and
32+
# exports a dummy NODE_AUTH_TOKEN that pnpm sends as the bearer token
33+
# instead of doing the OIDC exchange — npm masks that as a 404.
3234

3335
- uses: pnpm/action-setup@v4
3436
with:
@@ -66,7 +68,9 @@ jobs:
6668
- uses: actions/setup-node@v4
6769
with:
6870
node-version: '22'
69-
registry-url: 'https://registry.npmjs.org'
71+
# No registry-url on purpose: with it, setup-node writes an .npmrc and
72+
# exports a dummy NODE_AUTH_TOKEN that pnpm sends as the bearer token
73+
# instead of doing the OIDC exchange — npm masks that as a 404.
7074

7175
- uses: pnpm/action-setup@v4
7276
with:
@@ -105,7 +109,9 @@ jobs:
105109
- uses: actions/setup-node@v4
106110
with:
107111
node-version: '22'
108-
registry-url: 'https://registry.npmjs.org'
112+
# No registry-url on purpose: with it, setup-node writes an .npmrc and
113+
# exports a dummy NODE_AUTH_TOKEN that pnpm sends as the bearer token
114+
# instead of doing the OIDC exchange — npm masks that as a 404.
109115

110116
- uses: pnpm/action-setup@v4
111117
with:

0 commit comments

Comments
 (0)