fix: add concurrency guard and workflow_dispatch to CLI release (#1812)

The race condition: two PRs merged 3 seconds apart both triggered the
CLI Release workflow. The second run (v0.7.12) finished last and
overwrote the release with a stale binary, even though the repo HEAD
was at v0.8.0.

- Add concurrency group so concurrent releases cancel the older one
- Add workflow_dispatch trigger for manual re-runs

Co-authored-by: lab <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
A 2026-02-23 10:52:17 -08:00 committed by GitHub
parent c76d930046
commit aa88e70488
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,11 @@ on:
- 'cli/src/**'
- 'cli/package.json'
- 'cli/bun.lock'
workflow_dispatch:
concurrency:
group: cli-release
cancel-in-progress: true
jobs:
build: