Skip to content

Commit e52b3a6

Browse files
committed
ci(publish): setup OIDC for NPM publish
1 parent cfdda30 commit e52b3a6

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
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
jobs:
812
publish:
913
runs-on: ubuntu-latest
@@ -19,5 +23,3 @@ jobs:
1923
run: npm install
2024
- name: Publish to NPM
2125
run: npm publish --access public
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)