Skip to content

Commit 30e4df2

Browse files
glommerclaude
andcommitted
fix: trusted publishing — remove registry-url that blocked OIDC
setup-node with registry-url creates an .npmrc that overrides OIDC auto-detection, causing ENEEDAUTH. Removed it so npm CLI can use the GitHub OIDC token directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f256e62 commit 30e4df2

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
id-token: write
10+
711
jobs:
812
publish:
913
runs-on: ubuntu-latest
10-
permissions:
11-
contents: read
12-
id-token: write
1314
steps:
1415
- uses: actions/checkout@v4
1516

@@ -19,8 +20,7 @@ jobs:
1920

2021
- uses: actions/setup-node@v4
2122
with:
22-
node-version: 20
23-
registry-url: https://registry.npmjs.org
23+
node-version: 22
2424

2525
- run: bun install
2626

@@ -32,5 +32,3 @@ jobs:
3232

3333
- name: Publish
3434
run: npm publish --provenance --access public
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)