Skip to content

Commit 748ae65

Browse files
authored
fix(releases): use npm 11.x for OIDC support in the release workflow (#2742)
Support for OIDC requires npm v11.5.1 or newer.
1 parent 249878e commit 748ae65

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ jobs:
137137
with:
138138
node-version: 20.19.0
139139

140+
# npm v11.5.1 or newer is required for OIDC support
141+
# https://github.blog/changelog/2025-07-31-npm-trusted-publishing-with-oidc-is-generally-available/#whats-new
142+
- name: Setup npm 11.x for OIDC
143+
run: npm install -g npm@11.6.4
144+
140145
- name: Install and update lockfile
141146
run: pnpm install --no-frozen-lockfile
142147

@@ -185,6 +190,11 @@ jobs:
185190
node-version: 20.19.0
186191
cache: "pnpm"
187192

193+
# npm v11.5.1 or newer is required for OIDC support
194+
# https://github.blog/changelog/2025-07-31-npm-trusted-publishing-with-oidc-is-generally-available/#whats-new
195+
- name: Setup npm 11.x for OIDC
196+
run: npm install -g npm@11.6.4
197+
188198
- name: Download deps
189199
run: pnpm install --frozen-lockfile
190200

0 commit comments

Comments
 (0)