From ec0302721cdfa4d8ee4a4555892d1f0bb49473e6 Mon Sep 17 00:00:00 2001 From: Vinay Khobragade Date: Thu, 25 Dec 2025 04:31:13 +0530 Subject: [PATCH] Fix npm OIDC: update npm + set NPM_CONFIG_PROVENANCE --- .github/workflows/release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eaa028d..755dcb4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -187,7 +187,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - # No registry-url - npm will use OIDC automatically for trusted publishing + registry-url: 'https://registry.npmjs.org' + + - name: Update npm for OIDC support + run: npm install -g npm@latest - name: Extract version id: version @@ -198,7 +201,9 @@ jobs: cd packages/npm npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version --allow-same-version - - name: Publish to npm with provenance + - name: Publish to npm with OIDC run: | cd packages/npm - npm publish --access public --provenance + npm publish --access public + env: + NPM_CONFIG_PROVENANCE: true