Skip to content

Commit dfd1588

Browse files
committed
fix(ci): wire NPM_TOKEN into the npm publish step
The publish job failed with npm E404 on PUT for existing @pleaseai/code-* packages: setup-node writes an .npmrc that reads NODE_AUTH_TOKEN, but the Publish step never set it, so npm ran unauthenticated (placeholder token) and the registry rejected the publish. Provide NODE_AUTH_TOKEN from the NPM_TOKEN secret.
1 parent 559a54d commit dfd1588

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080
run: bun run build:npm
8181

8282
- name: Publish to npm
83+
env:
84+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8385
run: |
8486
for dir in npm/code-*; do
8587
(cd "$dir" && npm publish --provenance --access public)

0 commit comments

Comments
 (0)