Skip to content

Commit f73b002

Browse files
committed
CI: npm provenance publishing with OIDC
1 parent 84f7a9a commit f73b002

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ jobs:
2323
needs: test
2424
if: startsWith(github.ref, 'refs/tags/v')
2525
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
28+
id-token: write
2629
steps:
2730
- uses: actions/checkout@v6
2831
- uses: actions/setup-node@v4
2932
with:
3033
node-version: '20'
3134
registry-url: 'https://registry.npmjs.org'
32-
- run: npm publish --tag alpha
35+
- run: npm publish --provenance --tag alpha
3336
env:
3437
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)