Skip to content

Commit 6c22b4e

Browse files
ci(release): enable npm OIDC trusted publishing (#287)
1 parent 89811e9 commit 6c22b4e

3 files changed

Lines changed: 401 additions & 396 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ jobs:
5050
working-directory: 'cli'
5151
run: pnpm build
5252

53+
# npm trusted publishing (OIDC) requires npm >= 11.5.1; the runner's bundled
54+
# npm (shipped with Node 22) is older, so upgrade it before publishing.
55+
- name: Upgrade npm for OIDC trusted publishing
56+
run: npm install -g npm@latest
57+
5358
- name: Release
5459
working-directory: cli
5560
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"nyc": "^17.1.0",
117117
"oclif": "^4.17.34",
118118
"rimraf": "^6.0.1",
119-
"semantic-release": "^23.1.1",
119+
"semantic-release": "^25.0.3",
120120
"simple-git": "^3.36.0",
121121
"sinon": "^21.0.0",
122122
"string-argv": "^0.3.1",

0 commit comments

Comments
 (0)