Skip to content

Commit

Permalink
Fix: Use npm publish provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
doteric authored May 29, 2023
1 parent 8e26fed commit 2c89d49
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 @@ -7,6 +7,8 @@ on:
jobs:
build_and_publish:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: npm
steps:
- uses: actions/checkout@v3
Expand All @@ -19,6 +21,6 @@ jobs:
npm version ${{ github.event.release.tag_name }}
npm ci
npm run compile
npm publish
npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 2c89d49

Please sign in to comment.