Skip to content

Commit d0c6c7c

Browse files
committed
CI: Publish with OIDC
1 parent 4832632 commit d0c6c7c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
push:
66
branches: [ "main" ]
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
test:
1014
name: Publish new version
@@ -26,5 +30,3 @@ jobs:
2630

2731
- name: Publish
2832
run: npm publish
29-
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)