Repository navigation
Commit 8e6fc83
Publish the nightly channel after a stable release (#1651)
## Problem
A nightly version is `<next patch>-nightly.<run id>.<attempt>`, derived
from the version on `main`. When we release `0.38.0`, the newest nightly
is `0.37.1-nightly.*`, which is lower than `latest`. The nightly npm
dist-tag and the `bb Nightly` desktop app therefore stay behind the
stable release until the 3am cron.
## Change
A non-dry `npm_tag=latest` run now refreshes the nightly channel from
the same release commit.
- New `publish-nightly` job. It runs only for a non-dry `latest`
dispatch, after `publish` succeeds. It derives the next nightly version
from the release commit, publishes it under the `nightly` dist-tag, and
verifies the registry. It runs `smoke:tarball` first, because `bb-app`
has no `prepack` hook and its `files` list ships built output, so a
fresh runner must build before it packs. It skips typecheck and unit
tests, because `publish` ran them on this same commit and only the
version string differs.
- The nightly desktop build jobs take the version from either npm job:
`needs.publish-nightly.outputs.version ||
needs.publish.outputs.version`. Their `if` uses `!cancelled()`, because
`publish-nightly` is skipped on the scheduled and manual nightly paths
and a skipped need would otherwise skip them.
- Both npm publishes that move the `nightly` dist-tag share one
job-level concurrency group, `publish-nightly-npm`, so the cron and a
release run cannot move that tag at the same time. A stable release
publishes `latest`, so it takes a per-run group and never queues behind
the cron.
- `nightly-desktop-publish` gets its own concurrency group. The
workflow-level group splits `nightly` from `ref`, so a release run and
the cron could reach the moving `desktop-nightly` release at the same
time. That job deletes every asset before upload, so the race could
leave one platform's binaries missing.
- `docs/bb-release-process.md` and `apps/desktop/README.md` describe the
new step.
The nightly jobs run after the stable publish succeeds, so a nightly
failure cannot affect the release that already shipped.
## Tests
- Parsed the workflow YAML and confirmed the job graph, the `if`
expressions, and the `needs` lists.
- No unit tests: the change is GitHub Actions job wiring.
`prepare-nightly-version.mjs` and `bump-version.mjs` are unchanged.
## Risks
- A `latest` run grows from about 7 minutes to about 30 minutes, because
it now also builds the signed macOS and Linux nightly desktop apps.
Measured from recent runs: `Publish bb-app` 7m, macOS desktop 14m, Linux
desktop 4m, desktop publish under 1m. The stable npm publish still
completes about 7 minutes in, so users do not get the release later.
- The `npm-release` environment gate applies to `publish-nightly` too,
so an approval-gated setup asks a second time.
- The full path only runs on a real release dispatch, so the first live
exercise is the next stable release.
> AGENT GENERATED: by Claude Opus 5
---------
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>1 parent 641380f commit 8e6fc83
3 files changed
Lines changed: 179 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
224 | 231 | | |
225 | 232 | | |
226 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 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 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
227 | 353 | | |
228 | 354 | | |
229 | 355 | | |
| |||
362 | 488 | | |
363 | 489 | | |
364 | 490 | | |
365 | | - | |
366 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
367 | 503 | | |
368 | 504 | | |
369 | 505 | | |
| |||
397 | 533 | | |
398 | 534 | | |
399 | 535 | | |
400 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
401 | 540 | | |
402 | 541 | | |
403 | 542 | | |
| |||
484 | 623 | | |
485 | 624 | | |
486 | 625 | | |
487 | | - | |
488 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
489 | 636 | | |
490 | 637 | | |
491 | 638 | | |
| |||
518 | 665 | | |
519 | 666 | | |
520 | 667 | | |
521 | | - | |
| 668 | + | |
| 669 | + | |
522 | 670 | | |
523 | 671 | | |
524 | 672 | | |
| |||
576 | 724 | | |
577 | 725 | | |
578 | 726 | | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
579 | 734 | | |
580 | 735 | | |
581 | 736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
179 | 184 | | |
180 | 185 | | |
181 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
41 | 50 | | |
42 | 51 | | |
43 | 52 | | |
| |||
155 | 164 | | |
156 | 165 | | |
157 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
158 | 171 | | |
159 | 172 | | |
160 | 173 | | |
| |||
0 commit comments