Skip to content

Commit 1b6b993

Browse files
authored
fix(sdk-ts): export npm token for semantic-release npm auth (#54)
## Summary - Fix TS release workflow auth wiring so npm auth uses the same secret for `NPM_TOKEN` and `NODE_AUTH_TOKEN`. - This matches `.npmrc` generated by `setup-node` (`_authToken=${NODE_AUTH_TOKEN}`). ## Why The failed main release run showed `EINVALIDNPMTOKEN` from `npm whoami` in `@semantic-release/npm`: - https://github.com/agentcontrol/agent-control/actions/runs/22650104589/job/65647353783 Workflow exported `NPM_TOKEN` but not `NODE_AUTH_TOKEN`, so npm auth in generated `.npmrc` could not reliably use the provided secret. ## Change - `.github/workflows/release-sdk-ts.yml` - add `NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}` in the semantic-release step env ## Validation - Analyzed failing run logs: https://github.com/agentcontrol/agent-control/actions/runs/22650104589/job/65647353783 - Branch diff vs `main` is one-line workflow fix.
1 parent fe33556 commit 1b6b993

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/release-sdk-ts.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
env:
7878
GITHUB_TOKEN: ${{ secrets.GALILEO_AUTOMATION_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
7979
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
80+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8081
run: |
8182
set -euo pipefail
8283

0 commit comments

Comments
 (0)