Skip to content

chore(cd): clear the placeholder npm token so trusted publishing works - #536

Merged
ShaneK merged 1 commit into
stablefrom
fix/cd-oidc-auth
Aug 19, 2026
Merged

chore(cd): clear the placeholder npm token so trusted publishing works#536
ShaneK merged 1 commit into
stablefrom
fix/cd-oidc-auth

Conversation

@ShaneK

@ShaneK ShaneK commented Aug 19, 2026

Copy link
Copy Markdown
Member

Unblocks the 13.0.0 publish

The publish step reached the registry, signed provenance, and then failed with E404 on
the PUT. That E404 is npm masking an authorization failure.

`setup-node` exports NODE_AUTH_TOKEN as the literal placeholder XXXXX-XXXXX-XXXXX-XXXXX
when no token input is given, and the .npmrc it writes points `_authToken` at that
variable. npm therefore sent the placeholder as a real credential and never attempted
the OIDC exchange, which is why the log has no trusted-publishing activity at all.

Reproduced locally against the same .npmrc shape:

  NODE_AUTH_TOKEN=XXXXX-XXXXX-XXXXX-XXXXX  ->  E401 Unauthorized
  NODE_AUTH_TOKEN=''                       ->  ENEEDAUTH, no credential configured

The second state is what lets npm fall back to trusted publishing, so the publish step
now clears the variable.

This requires a trusted publisher to be configured on npmjs.com for both
@ionic/angular-toolkit and @ionic/cordova-builders. Without that, the publish fails on
auth regardless of this change.
@ShaneK
ShaneK merged commit db7451b into stable Aug 19, 2026
1 check passed
@ShaneK
ShaneK deleted the fix/cd-oidc-auth branch August 19, 2026 20:45
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