Skip to content

Commit bed5c61

Browse files
committed
fix(ci): upgrade npm for trusted publishers OIDC support
npm < 11.5.1 uses OIDC only for provenance signing but still requires a traditional npm token for publishing. Upgrading npm enables full OIDC-based publishing via npm trusted publishers.
1 parent 4312268 commit bed5c61

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/js-sdk-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
node-version: '20'
3434
registry-url: 'https://registry.npmjs.org'
3535

36+
- name: Upgrade npm for trusted publishers support
37+
run: |
38+
npm install -g npm@latest
39+
echo "npm: $(npm --version)"
40+
3641
- name: Verify OIDC token availability
3742
run: |
3843
if [ -n "${ACTIONS_ID_TOKEN_REQUEST_URL}" ] && [ -n "${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" ]; then

0 commit comments

Comments
 (0)