Skip to content

Commit

Permalink
Add npm package provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Jul 1, 2023
1 parent dcf7690 commit c4a7ae0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Expand Up @@ -15,6 +15,10 @@ jobs:
name: npm
url: https://npm.im/html-minifier-terser

permissions:
contents: read
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -38,6 +42,6 @@ jobs:
- name: Run Tests
run: npm run test

- run: npm publish
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit c4a7ae0

Please sign in to comment.