fix(ci): prevent pipeline race condition on release push

Serialize pipeline runs with a fixed concurrency group (pipeline-main)
instead of per-SHA groups that allowed parallel races. Pull --rebase
before pushing the release commit so intervening main commits don't
cause non-fast-forward failures.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson 2026-03-25 10:47:35 -06:00
parent cebdc77ffd
commit c6328a229f

View file

@ -7,7 +7,7 @@ on:
branches: [main]
concurrency:
group: pipeline-${{ github.sha }}
group: pipeline-main
cancel-in-progress: false
permissions:
@ -187,6 +187,7 @@ jobs:
git add package.json package-lock.json CHANGELOG.md native/npm/*/package.json pkg/package.json packages/pi-coding-agent/package.json
git commit -m "release: v${RELEASE_VERSION}"
git tag "v${RELEASE_VERSION}"
git pull --rebase origin main
git push origin main
git push origin "v${RELEASE_VERSION}"