Skip to content

fix(release): fallback root version when git-cliff does not advance it#16

Merged
muqiuhan merged 1 commit intomainfrom
fix/root-version-fallback
Mar 13, 2026
Merged

fix(release): fallback root version when git-cliff does not advance it#16
muqiuhan merged 1 commit intomainfrom
fix/root-version-fallback

Conversation

@somhairle-marisol
Copy link
Collaborator

Summary

  • add a root-version fallback in scripts/changeset-version.sh
  • unblock changesets/action when pending changesets exist but git-cliff --bump returns the current root version
  • recover the currently pending @clinwise/release-scribe release path from PR #15

Root cause

The custom version script tried to run pnpm version with the unchanged root version 0.3.0.
That happened because the repository had pending changesets, but the unreleased git-cliff bump still resolved to the current root version.

Validation

  • reproduced the failure from run 23044660593
  • verified the patched script in an isolated clone with bash -x ./scripts/changeset-version.sh
  • confirmed the script now advances the root version to 0.3.1
  • confirmed pnpm changeset version completes and plans @clinwise/release-scribe 0.1.0 -> 0.1.1

Guard the root versioning step when pending changesets exist but git-cliff
returns the current version. In that case, bump the root patch version so
changesets can still open the version PR instead of failing with "Version not changed".
@muqiuhan muqiuhan merged commit c8fe364 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