Commit 6ce5840
bcode
ci(release): fail tag-push if tag is not reachable from main
Releases must be cut from main. Tagging a feature branch (e.g. when a
stacked PR has merged into a parent feature branch but not yet into main)
silently produces a release whose contents diverge from the canonical
history.
Precedent: v0.0.8 / v0.0.9 were tagged from feat/embed-lmnr-key after
PR #33 merged into the feature branch (not into main). Main moved on
without it and the bcode-laminar package had to be re-landed in PR #39.
This guard fails the release workflow early — before any binaries are
built or uploaded — when the tag's commit is not an ancestor of
origin/main.1 parent 1b55206 commit 6ce5840
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
63 | 79 | | |
64 | 80 | | |
65 | 81 | | |
| |||
0 commit comments