Skip to content

Run the release only when somebody asks for one - #6

Merged
thorstenalpers merged 1 commit into
mainfrom
fix/release-only-on-demand
Aug 31, 2026
Merged

Run the release only when somebody asks for one#6
thorstenalpers merged 1 commit into
mainfrom
fix/release-only-on-demand

Conversation

@thorstenalpers

Copy link
Copy Markdown
Owner

My mistake in #5. I read "auto release" as "release when the version changes" and put push: branches: [main] on the workflow — so every merge since has started a release run. Merging a pull request says nothing about whether a release has been decided.

What it does now

workflow_dispatch only. Press the button and it builds, signs, creates the tag v<version> at that commit and publishes the installer, its .sig and latest.json. Nobody tags by hand — that was the other half of the ask.

trigger the Run workflow button, nothing else
tag created by the pipeline from package.json
dry_run tick builds and signs, publishes nothing
version already tagged refused in seconds, before anything compiles

A tag that already names a release is the one thing somebody may already have downloaded, so it is refused rather than moved. Bump first:

npm version patch

🤖 Generated with Claude Code

I read "auto release" as "release when the version changes" and put a
push trigger on main, so every merge started a release run. That is not
what a release is: merging a pull request says nothing about whether one
has been decided.

The workflow now runs on workflow_dispatch alone. Pressing it builds,
signs, creates the tag at that commit and publishes — the tag is still
the pipeline's job, never anyone's by hand. A `dry_run` tick keeps the
rehearsal. A version that already has a tag is refused in seconds rather
than overwritten, because that tag is the one thing somebody may already
have downloaded.
@thorstenalpers
thorstenalpers merged commit 8535727 into main Aug 31, 2026
2 checks passed
@thorstenalpers
thorstenalpers deleted the fix/release-only-on-demand branch August 31, 2026 17:11
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