Skip to content

Commit 5669437

Browse files
phernandezclaude
andcommitted
fix: remove registry-url from setup-node to fix OIDC publishing
setup-node with registry-url writes an .npmrc expecting NODE_AUTH_TOKEN, which sends an empty/invalid token that overrides OIDC trusted publishing. Set registry manually before publish instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f330caf commit 5669437

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
uses: actions/setup-node@v4
3535
with:
3636
node-version: "20"
37-
registry-url: "https://registry.npmjs.org"
3837

3938
- name: Install dependencies
4039
run: bun install --frozen-lockfile
@@ -76,7 +75,9 @@ jobs:
7675
git push origin "${{ steps.bump.outputs.tag }}"
7776
7877
- name: Publish to npm
79-
run: npm publish --provenance --access public
78+
run: |
79+
npm config set registry https://registry.npmjs.org/
80+
npm publish --provenance --access public
8081
8182
- name: Create GitHub release
8283
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)