Skip to content

Allow pre-release publish when changelog has older version#18

Merged
shellicar merged 1 commit intomainfrom
fix/publish-pre-release
Apr 11, 2026
Merged

Allow pre-release publish when changelog has older version#18
shellicar merged 1 commit intomainfrom
fix/publish-pre-release

Conversation

@shellicar
Copy link
Copy Markdown
Owner

Summary

  • Pre-release versions no longer fail changelog verification when the latest changelog entry is an older version
  • Stable releases still require an exact changelog match

Co-Authored-By: Claude noreply@anthropic.com

The verify changelog step stripped the pre-release suffix to get the
base version, then required the first changelog entry to match it.
This fails for pre-releases where the changelog entry for the target
version hasn't been written yet (e.g. publishing 1.5.6-alpha.1 when
the changelog still has [1.3.2] as its first entry).

Now, when the base version doesn't match the first changelog entry,
the script checks whether the tag is a pre-release (contains a
hyphen). If so, it exits successfully. Stable releases still require
an exact match.
@shellicar shellicar added this to the monorepo-migration milestone Apr 11, 2026
@shellicar shellicar added the bug Something isn't working label Apr 11, 2026
@shellicar shellicar self-assigned this Apr 11, 2026
@shellicar shellicar enabled auto-merge (squash) April 11, 2026 16:47
@shellicar shellicar merged commit dae0926 into main Apr 11, 2026
4 checks passed
@shellicar shellicar deleted the fix/publish-pre-release branch April 11, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant