Skip to content

feat(update): a nightly channel, built from main on every merge - #278

Merged
StuBehan merged 2 commits into
mainfrom
feat/nightly-channel
Nov 24, 2026
Merged

StuBehan merged 2 commits into
mainfrom
feat/nightly-channel

Conversation

@StuBehan

@StuBehan StuBehan commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a nightly channel for the team and anyone who wants main before it's released.

  • .github/workflows/nightly.yml runs at 02:00 UTC (2am in winter, 3am in BST since GitHub cron has no time zones) and from Actions → Run workflow when you want one now. A scheduled run skips the night if the nightly tag already points at main's head. It moves the tag to the commit, keeps one rolling nightly pre-release (never marked latest), then builds, signs and notarizes both arches the same way release.yml does and swaps that arch's files on the release
  • a nightly is a semver pre-release of the release main is heading for, <next>-nightly.<n>. next comes from release-please's open release PR (it recomputes that from the commits on every push, so right now it'd be 2.10.1), or a patch bump of the last release if there isn't one, and n is main's commit count so a later build always has the bigger number. It's in the artifact name (stack-nudge-2.10.1-nightly.812-macos-arm64.tar.gz) and stamped into Info.plist as StackNudgeNightlyBuild
  • Settings → Actions gets Update channel (Stable / Nightly, STACKNUDGE_UPDATE_CHANNEL). On Nightly the update check and the updater read the nightly release instead of /releases/latest and offer a higher build number, and a release build gets moved onto nightlies of a later version. Semver order throughout, so 2.10.1-nightly.n sits before 2.10.1: switching back to Stable waits for the release your nightly was leading up to rather than stepping back. Changing it re-checks straight away
  • About shows a nightly as 2.10.1 (nightly 812) and the post-update screen pulls the nightly release's notes

Nobody on Stable, or on any app from before this, can be offered a nightly: they only ever read /releases/latest, which leaves pre-releases out.

The signing and notarize steps are copied from release.yml rather than shared, so the stable path is untouched by this. Once a few nightlies have gone through it'd be worth pulling both into one reusable workflow. Worth kicking one off by hand after merging rather than waiting for 2am, since that's the first real run of the tag and release creation.

Tests: new UpdateChannelTests (version parsing, reading a nightly from its arch's artifact, what each channel offers in both directions, the setting) plus the settings, extension installer and updater suites pass. actionlint is clean on the workflow.

@StuBehan
StuBehan merged commit 61c8614 into main Nov 24, 2026
6 checks passed
@StuBehan
StuBehan deleted the feat/nightly-channel branch November 24, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant