Repository navigation
Commit 1b6b993
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
0 commit comments