Commit f449dec
fix(desktop): pass --publish never to the Linux packaging build (#10559)
electron-builder.config.mjs declares a `publish` block (GitHub provider), so
electron-builder auto-publishes whenever it detects CI. The config comment
spells out the resulting invariant: every build command must pass
`--publish never`. `build:linux`, added with Linux support in #10096, did
not — so the "Linux package · helper smoke" job of Desktop Windows CI has
failed on every commit since d660a1a with:
Error: GitHub Personal Access Token is not set, neither programmatically,
nor using env "GH_TOKEN"
That job is a required check on every PR touching desktop/windows/**, so
main has been red and the lane blocking since 2026-07-25 01:23 UTC.
Add the flag to build:linux (build:mac had the same latent gap; no CI lane
runs it, but the invariant is the same) and add a guard test so a platform
build script cannot ship without it again. No release lane calls build:linux
or build:mac — the Windows release workflow invokes electron-builder
directly and already passes --publish never.
Failure-Class: none
Verified: pnpm vitest scripts/build-scripts-publish.test.mjs 4/4 pass; with
the flag reverted on build:linux the guard fails exactly on that script
(1 failed | 3 passed). prettier --check clean. End-to-end proof is the
Linux package job on this PR, which runs the identical `pnpm run build:linux`
command that is failing on main.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent eba9598 commit f449dec
2 files changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments