Fix CI publish: write .npmrc before npm publish

NPM_TOKEN secret was not being used properly. Write .npmrc with the token before publish.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-12 08:32:33 -04:00
parent ce666f6b54
commit 38e5fd8154
+1 -2
View File
@@ -33,6 +33,5 @@ jobs:
cache: "npm"
- run: npm ci
- run: npm run build
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- run: npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}