Skip to content

fix(release): make npm publish retries idempotent - #426

Merged
christso merged 1 commit into
mainfrom
fix/publish-idempotent
Jun 18, 2026
Merged

fix(release): make npm publish retries idempotent#426
christso merged 1 commit into
mainfrom
fix/publish-idempotent

Conversation

@christso

Copy link
Copy Markdown
Contributor

Summary

  • Route publish:next and publish:latest through a retry-safe scripts/publish.ts wrapper.
  • Skip immutable npm publish when allagents@version already exists.
  • Ensure the requested npm dist-tag points at the release version without moving tags backwards.

Testing

  • bun install --frozen-lockfile
  • bun build scripts/publish.ts --target=bun --outfile=/tmp/allagents-publish-check.js
  • bun run typecheck
  • bun run lint
  • bun run publish:next on already-published 1.12.0-next.1 verified the idempotent skip path
  • bun test (1314 pass, 4 skip)
  • pre-push hook passed lint, typecheck, and tests

Post-Deploy Monitoring & Validation

  • After merge, dispatch Publish with channel=existing and ref=v1.12.0-next.1.
  • Healthy signal: workflow succeeds, reports package already published, and confirms allagents@next points to 1.12.0-next.1.
  • Failure signal: npm duplicate-version error or trusted-publishing auth error; rollback by reverting this PR and the publish workflow consolidation if needed.
  • Validation window: immediate post-merge workflow run; owner: release operator.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: d9db914
Status: ✅  Deploy successful!
Preview URL: https://bd16daee.allagents.pages.dev
Branch Preview URL: https://fix-publish-idempotent.allagents.pages.dev

View logs

@christso
christso merged commit d60dae9 into main Jun 18, 2026
1 check passed
@christso
christso deleted the fix/publish-idempotent branch June 18, 2026 23:56
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