Conversation
… changelog Two issues fixed: 1. Pre-release ignored the version input (patch/minor/major) and always computed the next patch. Selecting "minor" for 0.1.10 produced 0.1.11-beta.x instead of 0.2.0-beta.x. Now uses inputs.version to compute the correct base version. 2. Release did not update CHANGELOG.md or commit back to main. Now the workflow replaces [Unreleased] with the new version/date, updates comparison links, commits package.json + CHANGELOG.md, tags, and pushes to main before publishing. GitHub release targets the tag instead of the triggering SHA. https://claude.ai/code/session_0117LM1TVEG466NibhowB3Tg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the release workflow to support semantic versioning (major, minor, patch) bumps and automates changelog management for releases.
Key Changes
Semantic version bumping: Extended the version bump input to support
major,minor, andpatchoptions (previously only supported patch). The workflow now correctly computes the next base version according to the selected bump type.Improved beta version handling: Enhanced logic to detect when the current version is already a beta and intelligently determine whether to reuse or increment the base version, preventing unnecessary re-bumping.
Automated CHANGELOG.md updates: Added a new step that automatically updates
CHANGELOG.mdduring releases by:[Unreleased]section and creating a new dated entry for the released versionAutomated git operations: Added a new step to commit version bumps, changelog updates, and create annotated git tags during releases, streamlining the release process.
Fixed release target: Changed the GitHub release creation to target the newly created version tag instead of the commit SHA, ensuring the release points to the correct tag.
Updated input description: Removed "(release only)" from the version bump input description since it now applies to both pre-release and release workflows.
Implementation Details
The version computation logic now:
The changelog update uses
sedto maintain the existing format while inserting new version entries with today's date and updating comparison links.https://claude.ai/code/session_0117LM1TVEG466NibhowB3Tg