Repository navigation
Release job on plain electron-builder steps, publishing only from tags (#372) - #386
Merged
jtklein-agents merged 2 commits intoNov 26, 2026
Conversation
#372) Replace samuelmeuli/action-electron-builder with `yarn build` and `yarn electron-builder --<platform>` steps. Only a v* tag publishes; a macOS tag build forces code signing. CSC_* come from mac_certs on macOS only (empty elsewhere, which electron-builder treats as unset). The workflow token is read-only except on the release job. mac.notarize is off so the afterSign hook stays the one notarize path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
electron-builder treats an empty CSC_LINK on macOS as a certificate path and fails with "not a file". The old action only set it when non-empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jtklein-agents
merged commit Nov 26, 2026
e5ca35f
into
spec/370-electron-build-and-runtime-packages-current
11 of 12 checks passed
8 tasks
jtklein-agents
deleted the
372-release-job-on-plain-electron-builder-steps-publishing-only-from-tags
branch
November 26, 2026 11:23
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.
Closes #372
Summary
The release job drops
samuelmeuli/action-electron-builder@v1for plain steps, and only av*tag publishes."mac": { "identity": "Johannes Klein (9VR92ZCXA8)", + "type": "distribution", + "notarize": false,mac.notarize: falsekeeps electron-builder 26's built-in notarize off, soafterSign: ./scripts/notarize.jsand its Developer ID + team 9VR92ZCXA8 guard stay the only notarize path.scripts/notarize.jsis unchanged.Does an empty
CSC_LINKon Windows count as unset? Yes. In run 45802792960 the Windows job ran withCSC_LINK: ''and loggedno code signing certificate configured, signing is skipped.windowsSignToolManager.jstreats""likenull. macOS doesn't: withmac_certsempty, itschooseNotNullkept''as a certificate path and failed with<repo> not a file. The old action only setCSC_LINKwhen the secret was non-empty, so the step now unsets emptyCSC_*before running electron-builder.Evidence
Before: on a branch push the action built and uploaded draft releases. It could publish a macOS app without a signing certificate.
After: the branch push run 45804085610 passed lint and all three OSes. The repo still lists no releases or drafts:
electron-builderschema check on the newbuildblock:validateConfiguration(getConfig('.'))→schema ok.yarn test: 67 files, 474 tests pass.yarn lintandyarn typecheckare clean.Merge Danger
Door: two-way
Only CI config and two
build.mackeys change. A revert brings the old action back.Blast Radius: releases
v*tag now publishes straight away. A macOS tag build fails withoutmac_certs.contents: writeon branch pushes too, because job permissions can't depend on the ref.--publish neverkeeps those builds from uploading anything.🤖 Generated with Claude Code