Commit e3ed3bf
fix(ci): use explicit npm config set for token auth in publish steps
NODE_AUTH_TOKEN env-var interpolation via setup-node's NPM_CONFIG_USERCONFIG
can silently fail when the root .npmrc (shamefully-hoist) causes npm to warn
about unknown keys and partially skip user-config resolution. Writing the
token directly with `npm config set` bypasses that path entirely.
Also adds `npm whoami` diagnostic before MCP publish so failures surface a
clear message rather than a cryptic 404.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fa347bf commit e3ed3bf
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
253 | 256 | | |
254 | | - | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
260 | 263 | | |
261 | | - | |
262 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
263 | 268 | | |
264 | | - | |
| 269 | + | |
265 | 270 | | |
266 | 271 | | |
267 | 272 | | |
| |||
0 commit comments