Repository navigation
ci(vale): name a missing trusted publisher when a Vale publish 404s - #730
Conversation
@taskless/vale-grammars was bootstrapped by hand without registering release-vale.yml as its trusted publisher, so the 3.28.1 release published the six platform packages and got an anonymous-PUT 404 on grammars. The split set then stopped vale-upgrade-detect, correctly, without naming the cause. Make trusted-publisher registration an explicit bootstrap step with its exact fields, and have the publish loop say what an E404 on an existing package most likely means.
|
@claude /review |
|
Claude finished @aibex-agent[bot]'s task in 1m 12s —— View job Review completeReview mode: incremental — read 0 prior review thread(s) before reviewing.
FindingsNo issues found. The change to
No security, performance, or clarity concerns. This is a CI-only workflow change with no behavioral change to the happy path (success path now also |
The scheduled Upgrade the pinned Vale run on
mainat dfa347a (run) refused because the published@taskless/vale-*packages were at two versions. The six platform packages were at3.28.1-20261130004639and@taskless/vale-grammarswas still at3.27.0-20261117230017.Cause. The 3.28.1 release (46330880954) did try to publish grammars, and got
E404 Not Found - PUT .../@taskless%2fvale-grammars. Grammars had only ever been published by hand (bootstrapped 2026-11-20, no provenance). Its trusted publisher had not been registered, so the OIDC-only publish job had no credential for it. The detector's same-version rule was correct and is unchanged: grammars is packed and published with every release.Fixed out of band. The trusted publisher was registered on npm, and the failed job was re-run. Grammars is now at
3.28.1-20261130004639, so the set is back at one version.This PR makes the same failure easier to avoid and quicker to read:
taskless/cli/release-vale.yml/npm-autopublish) and a record of this incident.E404for a package name that already exists on the registry, the step adds an::error::naming the missing trusted publisher as the likely cause.Tested locally: the publish script was run under
bash -eo pipefailwith a fakenpm, covering both the 404 path and the success path.pnpm lintpasses. CI-only, so no changeset.