Skip to content

Commit ec7f2da

Browse files
committed
docs: add comments clarifying OIDC setup in workflow
1 parent 223c0d8 commit ec7f2da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
node-version: '22'
2626
registry-url: 'https://registry.npmjs.org'
27+
# registry-url enables OIDC authentication for npm publish
2728

2829
- name: Enable Corepack
2930
run: corepack enable
@@ -43,3 +44,5 @@ jobs:
4344
env:
4445
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4546
# No NPM_TOKEN needed - using trusted publishing via OIDC
47+
# The registry-url in setup-node@v4 enables OIDC authentication
48+
# npm CLI 11.5.1+ automatically detects OIDC and uses it for publish

0 commit comments

Comments
 (0)