Commit b5b8d01
bcode
fix(release): mark hyphen-suffixed tags as prerelease
Tags like `v0.1.9-rc2` and `v0.2.0-beta1` were being created as stable
`--latest` releases, which made them the default install target for
`bcode.sh/install`. The script queries GitHub's `/releases/latest` API,
which returns the newest release with `latest=true` and `prerelease=false`
— exactly what we were producing.
Earlier RCs only avoided this by being manually pre-created with
`--prerelease` before the tag push, so the workflow's `gh release view`
check found an existing release and skipped its own `create`. For
`v0.1.9-rc2` nobody did the manual prep and the workflow created it as
stable `--latest`.
Now: if the tag contains a hyphen, create with `--prerelease` (not
`--latest`). Bare semver tags continue to use `--latest`. Existing
releases are not touched on re-run; fix them with `gh release edit`.
OpenCode avoids this entirely by publishing betas to a separate repo
(`anomalyco/opencode-beta`); we ship everything to one repo and rely on
flags, so the flags need to be right.1 parent 23ccf31 commit b5b8d01
1 file changed
Lines changed: 37 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| |||
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
103 | 130 | | |
104 | | - | |
105 | | - | |
| 131 | + | |
| 132 | + | |
106 | 133 | | |
107 | 134 | | |
108 | 135 | | |
| |||
0 commit comments