Skip to content

Commit ba30da5

Browse files
authored
fix(ci): set NPM_TOKEN empty string to enable OIDC publishing (#375)
The changesets/action overwrites .npmrc with an undefined token when NPM_TOKEN is not set, breaking npm OIDC trusted publishing. Setting NPM_TOKEN to an empty string tells the action to skip .npmrc auth handling, allowing npm to use OIDC via id-token: write. See changesets/action#542 (issue) and #545 (fix, merged in v1.7.0).
1 parent 92c179f commit ba30da5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
title: 'chore: release package(s)'
6767
env:
6868
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
NPM_TOKEN: ''
6970

7071
deploy-docs:
7172
needs: release

0 commit comments

Comments
 (0)