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 ea5096c commit 79fe722
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ env:
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout tag "${{ github.ref_name }}"
uses: actions/checkout@v3
Expand All @@ -34,7 +36,7 @@ jobs:
run: cp LICENSE.md eslint-plugin/

- name: Publish package on NPM
run: npm publish --access public
run: npm publish --provenance --access public
working-directory: eslint-plugin
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 79fe722

Please sign in to comment.