Skip to content

fix(release): finalize repository releases after version PR merges#14

Merged
muqiuhan merged 1 commit intomainfrom
fix/release-finalization
Mar 13, 2026
Merged

fix(release): finalize repository releases after version PR merges#14
muqiuhan merged 1 commit intomainfrom
fix/release-finalization

Conversation

@somhairle-marisol
Copy link
Collaborator

Summary

  • detect version-package merge ranges separately from package publish success
  • finalize the root changelog, tag, and GitHub Release when the version PR landed but the package version already exists
  • document the fallback release-finalization behavior in the README

Root cause

The release workflow only continued when steps.changesets.outputs.published == 'true'.
That skipped the repository tag and GitHub Release when a package version already existed in the registry.

Validation

  • ruby -e "require 'yaml'; YAML.load_file('.github/workflows/release.yml')"
  • simulated the merged #13 range with BEFORE_SHA=81e7314 and GITHUB_SHA=00b3d48, which now returns should_finalize=true
  • simulated the current fix branch range from 00b3d48 to HEAD, which returns should_finalize=false

Detect release PR merge ranges separately from package publish success.
Allow the workflow to complete the root changelog, tag, and GitHub Release
when the version PR landed but the package version already exists.
@muqiuhan muqiuhan merged commit f55c597 into main Mar 13, 2026
1 check passed
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.

2 participants