Skip to content

Commit

Permalink
Generate npm package provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Mar 8, 2024
1 parent 6afae92 commit c9e8da7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:

release:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs:
- build
Expand All @@ -73,7 +76,7 @@ jobs:
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public dist/angular-natural-gallery/
- run: npm publish --provenance --access public dist/angular-natural-gallery/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -82,7 +85,7 @@ jobs:
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
- run: npm publish --access public dist/angular-natural-gallery/
- run: npm publish --provenance --access public dist/angular-natural-gallery/
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit c9e8da7

Please sign in to comment.