Skip to content

ci(publish): rebase-safe lockstep version-bump commit-back#424

Merged
MajorTal merged 1 commit into
mainfrom
claude/harden-publish-commitback
Jun 3, 2026
Merged

ci(publish): rebase-safe lockstep version-bump commit-back#424
MajorTal merged 1 commit into
mainfrom
claude/harden-publish-commitback

Conversation

@MajorTal
Copy link
Copy Markdown
Collaborator

@MajorTal MajorTal commented Jun 3, 2026

Sibling of run402-private's publish-functions hardening. The Commit version bump step did a bare git push origin main, which loses a push race with a concurrent merge — npm ships all three packages but main stays un-bumped with no tag/release (the failure mode that bit @run402/functions 3.5.0).

Now it rebuilds the (already-published) lockstep bump on the LATEST main each attempt — fetch + reset --hard origin/main + re-set the exact version across root + cli + sdk package.json (mirroring the bump step) + npm install --package-lock-only — conflict-free, retried 5x with backoff. Idempotent; dry_run unchanged. YAML validated; exercised on the next real publish.

Same fragility as run402-private's publish-functions (fixed there): the 'Commit version bump' step did a bare 'git push origin main', which loses a push race with any concurrent merge — leaving run402-mcp/run402/@run402/sdk published on npm but main un-bumped with no tag/release. Now it rebuilds the (already-published) lockstep bump on the LATEST main each attempt — fetch + reset --hard origin/main + re-set the exact published version across all three package.json (root via npm version, cli/sdk via node -e, mirroring the bump step) + npm install --package-lock-only — which is conflict-free, then retries the push up to 5x with backoff. Idempotent. dry_run path unchanged. YAML validated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MajorTal MajorTal merged commit 34c22ff into main Jun 3, 2026
4 checks passed
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