Skip to content

fix(cd): publish 13.0.0, and stop reporting success when nothing publishes - #537

Merged
ShaneK merged 2 commits into
stablefrom
chore/cd-verbose-publish-log
Aug 19, 2026
Merged

fix(cd): publish 13.0.0, and stop reporting success when nothing publishes#537
ShaneK merged 2 commits into
stablefrom
chore/cd-verbose-publish-log

Conversation

@ShaneK

@ShaneK ShaneK commented Aug 19, 2026

Copy link
Copy Markdown
Member

Publish v13

ShaneK added 2 commits August 19, 2026 13:48
The publish now fails with a bare ENEEDAUTH. npm's OIDC helper logs every failure path
at verbose, so at the default loglevel there is no way to tell a missing trusted
publisher from a permissions problem or a bad id_token:

  log.verbose('oidc', `Failed token exchange request with body message: ...`)
  log.verbose('oidc', 'Failed because token exchange was missing the token in the body')
  log.silly('oidc', 'Skipped because incorrect permissions for id-token ...')

Raising the loglevel makes the next run state the reason instead of us inferring it.
Re-running an old CD run went green having shipped nothing. A workflow re-run checks out
the run's original commit, where the manifests still carried the pre-release versions, so
`lerna version` declined with an EBEHIND warning and exited 0, and every package then
looked already published and was skipped.

The publish script now exits non-zero when it publishes no packages, so that state fails
loudly instead of reporting success.
@ShaneK ShaneK changed the title chore(cd): log npm at verbose so OIDC failures explain themselves fix(cd): publish 13.0.0, and stop reporting success when nothing publishes Aug 19, 2026
@ShaneK
ShaneK merged commit fbe0d8e into stable Aug 19, 2026
1 check passed
@ShaneK
ShaneK deleted the chore/cd-verbose-publish-log branch August 19, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant