Skip to content

Commit bd305dc

Browse files
piotrskiclaude
andcommitted
fix: wire NPM_TOKEN into release and canary publish steps
Adds registry-url to setup-node so .npmrc is configured, passes NPM_TOKEN to changesets/action for actual releases, and sets NODE_AUTH_TOKEN for the canary snapshot step. The secret was lost when the repo transferred to callstackincubator. Add NPM_TOKEN as a repository secret to restore publishing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 21c8c1c commit bd305dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- uses: actions/setup-node@v4
2626
with:
2727
node-version: '22'
28+
registry-url: 'https://registry.npmjs.org'
2829

2930
- name: Install dependencies
3031
run: bun install
@@ -55,10 +56,12 @@ jobs:
5556
createGithubReleases: true
5657
env:
5758
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5860

5961
- name: Publish canary snapshot
6062
if: steps.changesets.outputs.published != 'true'
6163
env:
64+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6265
NPM_CONFIG_PROVENANCE: true
6366
run: |
6467
git checkout ${{ github.sha }}

0 commit comments

Comments
 (0)