Skip to content

Commit 6fbc92c

Browse files
committed
Update publish.yml
1 parent 667e65c commit 6fbc92c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
permissions:
2929
contents: read
30-
id-token: write # Required for provenance
30+
id-token: write # Required for provenance and OIDC authentication
3131

3232
steps:
3333
- name: Checkout
@@ -53,8 +53,6 @@ jobs:
5353
- name: Publish packages (automatic on push)
5454
if: github.event_name == 'push'
5555
run: node scripts/publish.mjs --provenance
56-
env:
57-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5856

5957
- name: Publish packages (manual trigger)
6058
if: github.event_name == 'workflow_dispatch'
@@ -70,5 +68,3 @@ jobs:
7068
ARGS="$ARGS --provenance"
7169
fi
7270
node scripts/publish.mjs $ARGS
73-
env:
74-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)