Skip to content

Commit 674065a

Browse files
ci: add npm trusted publishers support via OIDC (#187)
1 parent b86f106 commit 674065a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
release:
1010
name: 🚀 release
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
contents: read
1215
steps:
1316
- name: Setup repo
1417
uses: actions/checkout@v3
@@ -28,6 +31,4 @@ jobs:
2831
run: npm ci && npm run build:release
2932

3033
- name: 🚀 publish
31-
run: npm publish --access public
32-
env:
33-
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
34+
run: npm publish --access public --provenance

0 commit comments

Comments
 (0)