Skip to content

Commit

Permalink
fix: add provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
cprecioso authored Apr 26, 2023
1 parent dee2ed2 commit a3389bb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/setup-node@v3
Expand All @@ -33,7 +37,8 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: package.tgz

- run: npm publish --access public package.tgz

- run: npm install -g npm
- run: npm publish --provenance --access public package.tgz
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 comments on commit a3389bb

Please sign in to comment.