ci(nightly): set the electron-builder publish channel for nightly builds

electron-builder does not derive the updater metadata name from the
prerelease tag for the GitHub provider: the first nightly run produced
latest-mac.yml / latest.yml / latest-linux.yml, and the publish step
refused the release for lack of nightly-*.yml. The nightly apply step now
also sets publish[0].channel to nightly in electron-builder.json.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
4grayandClaude Fable 5.1 committed 2026-09-15 21:57:50 +02:00
1 parent d3dee05a84
commit 0c9403baf8
6 files changed
+111 -11

No files matched your search

+3 -1
View File
@@ -493,7 +493,9 @@ jobs:
# offer it, and it must be in package.json before the frontend
# and backend builds and electron-builder read it. The value
# comes from the nightly-version job so every job of this run
# builds the same version.
# builds the same version. The script also sets the electron-
# builder publish channel to "nightly", which names the updater
# metadata nightly-mac.yml / nightly.yml / nightly-linux.yml.
if: needs.nightly-version.outputs.version != ''
# Windows runners default to PowerShell, where "${NIGHTLY_VERSION}"
# expands to nothing and the script rejects the empty version.