Skip to content

Commit baa1338

Browse files
fix(release): upgrade npm so OIDC trusted publishing works (#138)
1 parent 62ecbab commit baa1338

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,13 @@ jobs:
198198
cache: npm
199199
cache-dependency-path: crates/hm-dsl-engine/harmont-ts/package-lock.json
200200

201+
# node 20 ships npm 10, which can sign provenance but cannot AUTHENTICATE
202+
# via OIDC trusted publishing — that needs npm >= 11.5.1. Without it the
203+
# publish PUT goes out unauthenticated and npm masks it as a 404. Upgrade
204+
# so the configured trusted publisher actually authenticates the publish.
205+
- name: Upgrade npm for OIDC trusted publishing
206+
run: npm install -g npm@latest
207+
201208
- name: Install dependencies
202209
working-directory: crates/hm-dsl-engine/harmont-ts
203210
run: npm ci

0 commit comments

Comments
 (0)