Skip to content

Commit 1c3577d

Browse files
committed
chore: add provenance support
1 parent 4c75521 commit 1c3577d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
publish-npm:
2121
needs: build
2222
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
25+
id-token: write
2326
steps:
2427
- uses: actions/checkout@v3
2528
- uses: actions/setup-node@v3
2629
with:
2730
node-version: '16.x'
2831
registry-url: https://registry.npmjs.org/
2932
- run: npm ci
30-
- run: npm publish
33+
- run: npm publish --provenance --access public
3134
env:
3235
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)