Skip to content

Commit 35da86a

Browse files
committed
Update publish-npm-package.yml
1 parent 286bc70 commit 35da86a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish-npm-package.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
node-version: '20.x'
2929
registry-url: 'https://registry.npmjs.org'
3030

31+
- name: Upgrade npm for trusted publishing
32+
run: npm install -g npm@latest
33+
3134
- name: Install dependencies
3235
run: |
3336
if [ -e yarn.lock ]; then
@@ -39,5 +42,5 @@ jobs:
3942
fi
4043
4144
- name: Publish npm package to registry
42-
run: npm publish
45+
run: npm publish --provenance
4346

0 commit comments

Comments
 (0)