Skip to content

Commit 3745165

Browse files
committed
feat: update workflow for publishing package
1 parent 32bc26e commit 3745165

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ jobs:
4545
node-version: 22.x
4646
registry-url: https://registry.npmjs.org/
4747

48+
- name: Upgrade npm for Trusted Publishing
49+
run: |
50+
npm install -g npm@latest
51+
npm --version
52+
node --version
53+
4854
- name: Install dependencies
4955
run: npm ci
5056

@@ -56,9 +62,7 @@ jobs:
5662

5763
- name: Publish to npm
5864
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
59-
env:
60-
NPM_CONFIG_PROVENANCE: true
61-
run: npm publish --access public --provenance
65+
run: npm publish --access public
6266

6367
create_release:
6468
name: Create GitHub Release

0 commit comments

Comments
 (0)