Skip to content

Commit

Permalink
build: generate provenance statement when publishing to npmjs (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoerpenbeck authored Dec 19, 2024
1 parent 7b9d1e6 commit 345935a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -39,7 +40,7 @@ jobs:
run: npm run build

- name: Publish npm package
run: npm publish --access public
run: npm publish --provenance --access public

- name: Determine new version
id: version
Expand Down

0 comments on commit 345935a

Please sign in to comment.