Commit 34c22ff
ci(publish): make the lockstep version-bump commit-back rebase-safe (#424)
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>1 parent 75873e1 commit 34c22ff
1 file changed
Lines changed: 40 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
277 | 313 | | |
278 | 314 | | |
279 | 315 | | |
| |||
0 commit comments