Skip to content

Commit 209ae9a

Browse files
author
Sefina-DS
committed
fix: ensure provenance flag is in workflow file
1 parent f4b7d4d commit 209ae9a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/test-and-release.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ jobs:
3838
needs: build
3939
runs-on: ubuntu-latest
4040
if: startsWith(github.ref, 'refs/tags/v')
41+
permissions:
42+
contents: write
43+
id-token: write
4144
steps:
4245
- uses: actions/checkout@v4
43-
- name: Use Node.js 20.x
46+
- name: Use Node.js 24.x
4447
uses: actions/setup-node@v4
4548
with:
4649
node-version: 24.x
@@ -51,8 +54,8 @@ jobs:
5154
run: cd src-widgets && npm ci
5255
- name: Build widgets
5356
run: npm run build
54-
- name: Publish to npm
55-
run: npm publish --access public
57+
- name: Publish to npm with provenance
58+
run: npm publish --access public --provenance
5659
env:
5760
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5861
- name: Create GitHub Release

0 commit comments

Comments
 (0)