Skip to content

Commit a8795f4

Browse files
committed
fix: upgrade npm to latest for OIDC trusted publishing
1 parent 605eee7 commit a8795f4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
with:
3131
node-version: '22'
3232

33+
- name: Upgrade npm for OIDC trusted publishing
34+
run: |
35+
npm install -g npm@latest
36+
npm --version
37+
3338
- name: Install dependencies
3439
run: npm install
3540

@@ -73,11 +78,8 @@ jobs:
7378
- name: Update version
7479
run: npm version ${{ steps.version.outputs.version }} --no-git-tag-version --allow-same-version
7580

76-
- name: Setup npm for trusted publishing
77-
uses: azu/setup-npm-trusted-publish@v1.0.3
78-
7981
- name: Publish to npm
80-
run: npm publish --access public
82+
run: npm publish --access public --provenance
8183

8284
- name: Create Release
8385
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)