Skip to content

Commit

Permalink
ci: initial npm provenance support
Browse files Browse the repository at this point in the history
Close #898
  • Loading branch information
myfreeer committed Oct 29, 2023
1 parent 442521d commit c1a1a7c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: 14
registry-url: https://registry.npmjs.org/
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- run: npm ci
- run: npm publish
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit c1a1a7c

Please sign in to comment.