Skip to content

Commit c4a7ae0

Browse files
committed
Add npm package provenance
1 parent dcf7690 commit c4a7ae0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
name: npm
1616
url: https://npm.im/html-minifier-terser
1717

18+
permissions:
19+
contents: read
20+
id-token: write
21+
1822
steps:
1923
- name: Checkout
2024
uses: actions/checkout@v3
@@ -38,6 +42,6 @@ jobs:
3842
- name: Run Tests
3943
run: npm run test
4044

41-
- run: npm publish
45+
- run: npm publish --provenance
4246
env:
4347
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)