Skip to content

Commit e098038

Browse files
authoredAug 26, 2024··
ci(github): publish package to npm registry with provenance
https://docs.npmjs.com/generating-provenance-statements Release-As: 5.1.13
1 parent 17ff8a5 commit e098038

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎.github/workflows/release-please.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ jobs:
1818
release-type: node
1919

2020
publish:
21-
needs: release-please
2221
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
id-token: write
25+
needs: release-please
2326
if: ${{ needs.release-please.outputs.release_created }}
2427

2528
steps:
@@ -36,6 +39,6 @@ jobs:
3639
run: npm ci --prefer-offline
3740

3841
- name: Publish
39-
run: npm publish
42+
run: npm publish --provenance --access public
4043
env:
4144
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.