Skip to content

Commit

Permalink
feat/ci: add support for package provenance on publish (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbdharun authored Jul 3, 2024
1 parent b22c0a9 commit 7a64fb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
Expand All @@ -19,6 +23,6 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7a64fb8

Please sign in to comment.