Skip to content

Commit b0d02ee

Browse files
committed
Update workflow
1 parent 8552d3e commit b0d02ee

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ jobs:
88
publish-npm:
99
name: Publish to npm Registry
1010
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
contents: read
14+
attestations: write
1115
steps:
1216
- name: Checkout repository
1317
uses: actions/checkout@v4
@@ -27,7 +31,7 @@ jobs:
2731

2832
- name: Publish package to npm
2933
if: github.repository_owner == 'brahma-dev'
30-
run: npm publish --access public
34+
run: npm publish --access public --provenance
3135
env:
3236
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3337

@@ -48,6 +52,6 @@ jobs:
4852
'
4953
5054
- name: Publish to GitHub Packages
51-
run: npm publish
55+
run: npm publish --access public --provenance
5256
env:
5357
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)