Skip to content

Commit

Permalink
Merge pull request #237 from TechQuery/patch-1
Browse files Browse the repository at this point in the history
feat: enable NPM provenance in GitHub actions
  • Loading branch information
yanyiwu authored Sep 29, 2024
2 parents 75e2b1c + e895c54 commit 59dba7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -16,6 +19,6 @@ jobs:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 59dba7c

Please sign in to comment.