Skip to content

ci: publish when the release PR is merged - #18

Merged
mschmicking merged 2 commits into
mainfrom
ci/publish-on-release
Jul 31, 2026
Merged

ci: publish when the release PR is merged#18
mschmicking merged 2 commits into
mainfrom
ci/publish-on-release

Conversation

@mschmicking

Copy link
Copy Markdown
Owner

The release-please PR is titled 'release 1.0.1' but only sets the version, tags it and creates a GitHub Release — npm publishing was a separate manual button. Merging the PR left npm on the old version, which is confusing.

release.yml now also triggers on a published GitHub Release, so merging the release PR is the single action that ships a version. Manual dispatch stays as a fallback.

The publish condition checks github.event_name explicitly rather than negating inputs.dry_run, which is undefined on a release event.

mschmicking and others added 2 commits July 31, 2026 15:35
Two manual steps were confusing: the release-please pull request is titled
'release 1.0.1' but only sets the version, tags it and creates a GitHub
Release — npm publishing was a separate button, so merging the PR left npm
on the previous version.

release.yml now also triggers on a published GitHub Release, which only
happens when a release PR is merged. Merging is therefore the single action
that ships a version, with the version and changelog visible for review
first.

Manual dispatch stays for re-publishing after a failure or checking the
tarball without shipping. The publish condition is explicit about the event
rather than negating inputs.dry_run, which is undefined on a release event
and would have read as 'not a dry run' by accident rather than intent.

The tagging step is gone: release-please already created the tag that
triggered the run.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The check rejected 'ci(release): ...' — 'main' was allowed for
release-please's own PR title but 'release' was not, in a repository with a
release workflow, a release-please config and a release PR.

The rule worked exactly as intended; the vocabulary was incomplete.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@mschmicking mschmicking changed the title ci(release): publish when the release PR is merged ci: publish when the release PR is merged Jul 31, 2026
@mschmicking
mschmicking merged commit 6101555 into main Jul 31, 2026
8 checks passed
@mschmicking
mschmicking deleted the ci/publish-on-release branch July 31, 2026 13:45
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