Skip to content

Commit 33c480b

Browse files
anandgupta42claude
andcommitted
fix: configure npm auth via .npmrc before publish
npm publish requires an .npmrc with the auth token configured. The NPM_TOKEN env var alone isn't sufficient. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8653ad6 commit 33c480b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ jobs:
5757
name: dist
5858
path: packages/altimate-code/dist/
5959

60+
- name: Configure npm auth
61+
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
62+
env:
63+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
64+
6065
- name: Publish to npm
6166
run: bun run packages/altimate-code/script/publish.ts
6267
env:

0 commit comments

Comments
 (0)