Skip to content

fix(ci): npm 'Validating' window ya no bloquea el pipeline de release - #128

Merged
hectorpalmatellez merged 1 commit into
mainfrom
fix/release-npm-verify
Nov 28, 2026
Merged

hectorpalmatellez merged 1 commit into
mainfrom
fix/release-npm-verify

Conversation

@hectorpalmatellez

Copy link
Copy Markdown
Member

Qué cambia

Saca la verificación de resolución en npm del job publish y la mueve a un job npm-verify nuevo que no bloquea nada.

  • publish ahora termina después de publicar; cdn y github-release siguen dependiendo solo de él, así que la ventana de "Validating" de npm ya no puede saltarse el deploy al CDN ni el GitHub Release.
  • npm-verify (needs: publish) sondea hasta 6 minutos cada 30s, probando tanto npm view … dist.tarball como un range request HTTP contra la URL del tarball — los metadatos pueden resolver mientras el tarball aún responde 404 durante la validación.
  • Si la versión nunca resuelve, el job falla en rojo y abre un issue con label bug (con dedup por tag), así un publish realmente fallido sigue siendo visible.

Motivación: los releases 2.7.1 y 2.8.0 fallaron solo en este paso — el publish había salido bien pero Deploy to CDN y Write the GitHub Release quedaron skipped.

Pendiente después del merge

Re-despachar el release de 2.8.0 para que corran el CDN deploy y el GitHub Release que quedaron pendientes:

gh workflow run release.yml -f tag=2.8.0

Closes #127

The "Verify the version resolves on npm" step ran inside the publish job
with a 60s budget, but npm holds fresh releases in a "Validating" state
for minutes. When it timed out the whole publish job failed, which
skipped the CDN deploy and the GitHub Release even though the publish
itself had succeeded — this is what broke the 2.7.1 and 2.8.0 releases.

Move resolution checking into a separate npm-verify job that gates
nothing: it polls for up to 6 minutes, probes both the version metadata
and the tarball URL, and opens a bug-labeled issue if the version never
resolves, so a real publish failure still surfaces loudly.
@hectorpalmatellez
hectorpalmatellez merged commit 0ae7d76 into main Nov 28, 2026
4 checks passed
@hectorpalmatellez
hectorpalmatellez deleted the fix/release-npm-verify branch November 28, 2026 17:11
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.

Release: npm 'Validating' window fails the publish job and skips CDN + GitHub Release

1 participant