Skip to content

Commit 92e72cb

Browse files
authored
chore: update npm for OIDC trusted publishing support (#543)
Updates the release workflow to support OIDC trusted publishing by: 1. Adding a step to update npm to the latest version (11.5.1+) which is required for OIDC trusted publishing 2. Removing the NPM_TOKEN authentication line from .npmrc since it's no longer needed with OIDC This change improves security by using OpenID Connect for npm publishing instead of long-lived access tokens.
1 parent d6d3a8f commit 92e72cb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
github-token: ${{ secrets.GITHUB_TOKEN }}
3535
atlas-cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }}
3636

37+
# npm 11.5.1+ required for OIDC trusted publishing
38+
- name: Update npm for OIDC support
39+
run: npm install -g npm@latest
40+
3741
- name: Create Release Pull Request
3842
uses: changesets/action@v1
3943
with:

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
strict-peer-dependencies=false
22
auto-install-peers=true
33
@jsr:registry=https://npm.jsr.io
4-
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

0 commit comments

Comments
 (0)