Repository navigation
fix(desktop): pass --publish never to the Linux packaging build (main red) - #10559
Merged
Merged
Conversation
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) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
The Linux package · helper smoke job of
Desktop Windows CIhas failed on every commitsince
d660a1a712(2026-07-25 01:23 UTC), somainis red and the lane blocks every PRtouching
desktop/windows/**:Root cause
electron-builder.config.mjsdeclares apublishblock (GitHub provider) and its owncomment states the invariant:
build:linux, added with Linux support in #10096, omits the flag. electron-builder thentriggers implicit publishing on CI detection and dies on the missing token — after
packaging succeeds, so the artifacts are fine and only the publish step fails.
Fix
build:linuxgets--publish never, matchingbuild:win.build:machad the same latent gap (no CI lane runs it today) — same one-word fix.scripts/build-scripts-publish.test.mjs: everyelectron-builderscriptwith a
--win/--mac/--linuxtarget must carry the flag.No release lane calls
build:linuxorbuild:mac;desktop_windows_release.ymlinvokeselectron-builderdirectly and already passes--publish never.Verification
pnpm exec vitest run scripts/build-scripts-publish.test.mjs→ 4/4 pass.build:linuxfails the guard on exactly thatscript (
1 failed | 3 passed).prettier --checkclean.pnpm run build:linuxthat is failing on main — green here is the fix.Failure-Class: none
🤖 automated by hourly watchdog — tested and merged