Skip to content

Commit f8a9cc9

Browse files
committed
fix: use correct registry for npm OIDC trusted publishing
Remove --registry https://npmjs.org override which pointed at the wrong domain, breaking the OIDC token exchange. npm publish now uses the correct https://registry.npmjs.org configured by setup-node. Also add --provenance flag for explicit provenance attestation.
1 parent e2eec26 commit f8a9cc9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release-and-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ jobs:
9393
# This will tell npm to publish your scoped package with public access
9494
- name: Publish with latest tag
9595
if: ${{ needs.setup_variables.outputs.isLatest == 'true' }}
96-
run: npm publish --access public --registry https://npmjs.org
96+
run: npm publish --provenance --access public
9797

9898
- name: Publish with next tag
9999
if: ${{ needs.setup_variables.outputs.isLatest != 'true' }}
100-
run: npm publish --access public --tag next --registry https://npmjs.org
100+
run: npm publish --provenance --access public --tag next
101101

0 commit comments

Comments
 (0)