Skip to content

Commit

Permalink
Add provenance when publishing package
Browse files Browse the repository at this point in the history
  • Loading branch information
utarwyn committed Aug 4, 2023
1 parent a751316 commit 3a497fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
npm-js:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -15,7 +17,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn release
- run: npm publish --access public
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down

0 comments on commit 3a497fc

Please sign in to comment.