Skip to content

Commit 2d2fa58

Browse files
committed
fix: remove registry-url from setup-node to allow OIDC trusted publishing
1 parent 23acd0f commit 2d2fa58

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
with:
2626
node-version: "18"
2727
cache: "npm"
28-
registry-url: "https://registry.npmjs.org"
2928

3029
- name: Install dependencies
3130
run: npm ci
@@ -53,10 +52,7 @@ jobs:
5352
5453
- name: Publish to NPM
5554
if: steps.version-check.outputs.changed == 'true'
56-
run: |
57-
OIDC_TOKEN=$(curl -sS "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=npmjs" \
58-
-H "Authorization: bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" | jq -r .value)
59-
NODE_AUTH_TOKEN=$OIDC_TOKEN npm publish --provenance --access public
55+
run: npm publish --provenance --access public
6056

6157
- name: Create Git tag
6258
if: steps.version-check.outputs.changed == 'true'

0 commit comments

Comments
 (0)