Skip to content

Commit f3a1c53

Browse files
committed
fix: remove registry-url from setup-node to enable OIDC token exchange
The registry-url parameter causes setup-node to write an .npmrc with an empty NODE_AUTH_TOKEN placeholder, which prevents npm from falling back to OIDC-based trusted publishing.
1 parent 07ba5b2 commit f3a1c53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
with:
4646
node-version: 22
4747
cache: pnpm
48-
registry-url: https://registry.npmjs.org
4948

5049
- name: Install dependencies
5150
run: pnpm install --frozen-lockfile
@@ -54,4 +53,4 @@ jobs:
5453
run: pnpm build
5554

5655
- name: Publish to npm
57-
run: npm publish --provenance
56+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)