Skip to content

Commit 877494a

Browse files
committed
fix(publish): add --access public and provenance attestation
1 parent 51a6eca commit 877494a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write # required for npm provenance attestation
1113

1214
steps:
1315
- name: Checkout code
@@ -29,6 +31,6 @@ jobs:
2931
run: npm test --if-present
3032

3133
- name: Publish to NPM
32-
run: npm publish
34+
run: npm publish --access public --provenance
3335
env:
3436
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)