ci: restore npm upgrade for OIDC publishing (pin to npm@11)

Node 22 ships npm v10 which lacks OIDC support. The upgrade step was
removed in 02359f6 but is required for provenance-based publishing.
Pin to npm@11 instead of @latest to avoid future breakage.
This commit is contained in:
CloakHQ
2026-04-07 07:31:08 +02:00
parent 06d77e7261
commit a01adbe26c
+2
View File
@@ -85,6 +85,8 @@ jobs:
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
- name: Upgrade npm for OIDC support
run: npm install -g npm@11
- name: Build
run: cd js && npm ci && npm run build
- name: Publish to npm