Skip to content

Commit cc6e072

Browse files
committed
Add npm package provenance
1 parent 7f56d0f commit cc6e072

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
@@ -11,6 +11,10 @@ jobs:
1111
publish:
1212
runs-on: ubuntu-latest
1313

14+
permissions:
15+
contents: read
16+
id-token: write
17+
1418
steps:
1519
- name: Checkout
1620
uses: actions/checkout@v3
@@ -28,6 +32,6 @@ jobs:
2832
run: npm run test
2933

3034
- name: Publish to NPM
31-
run: npm publish
35+
run: npm publish --provenance
3236
env:
3337
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)