Skip to content

Commit 8af5ae6

Browse files
dogmarclaude
andcommitted
fix: add setup-node with registry-url for npm OIDC auth
The npm trusted publishing OIDC flow requires the registry URL to be configured via actions/setup-node. This creates the .npmrc that enables npm to perform OIDC token exchange during publish. Per npm docs, no --provenance flag or NPM_TOKEN is needed when trusted publishing is configured — npm handles auth automatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8109953 commit 8af5ae6

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,14 @@ jobs:
2323
node-version: "22"
2424
cache: true
2525

26+
- uses: actions/setup-node@v4
27+
with:
28+
registry-url: "https://registry.npmjs.org"
29+
2630
- run: vp install
2731

2832
- run: vp run @klinking/squircle#build
2933

30-
- name: Debug npm auth context
31-
run: |
32-
echo "=== npm config ==="
33-
npm config list
34-
echo "=== OIDC env vars ==="
35-
echo "ACTIONS_ID_TOKEN_REQUEST_URL set: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL != '' }}"
36-
echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN set: ${{ env.ACTIONS_ID_TOKEN_REQUEST_TOKEN != '' }}"
37-
echo "=== .npmrc files ==="
38-
cat ~/.npmrc 2>/dev/null || echo "no ~/.npmrc"
39-
cat .npmrc 2>/dev/null || echo "no ./.npmrc"
40-
cat package/.npmrc 2>/dev/null || echo "no package/.npmrc"
41-
4234
- run: npx semantic-release
4335
env:
4436
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
NPM_CONFIG_PROVENANCE: true
46-
DEBUG: "semantic-release:*,@semantic-release/npm:*"

0 commit comments

Comments
 (0)