Skip to content

Add release workflow for automated versioning#82

Open
nicolas2bert wants to merge 1 commit intomainfrom
setup/claude-code-review
Open

Add release workflow for automated versioning#82
nicolas2bert wants to merge 1 commit intomainfrom
setup/claude-code-review

Conversation

@nicolas2bert
Copy link
Contributor

Automatically creates semver releases on push to main (patch bump) and supports manual major/minor/patch bumps via workflow_dispatch. Updates the major version tag (v2) for downstream consumers.

Automatically creates semver releases on push to main (patch bump)
and supports manual major/minor/patch bumps via workflow_dispatch.
Updates the major version tag (v2) for downstream consumers.
@nicolas2bert nicolas2bert requested a review from a team as a code owner February 27, 2026 09:54
dvasilas
dvasilas approved these changes Feb 27, 2026
BUMP: ${{ inputs.bump || 'patch' }}
run: |
# Get the latest version tag
latest=$(git tag -l 'v[0-9]*.*.*' | sort -V | tail -1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edge case, but if we introduce this workflow in new repos that don't have any release yet, latest will be an empty string, I think.
We could add:

Suggested change
latest=$(git tag -l 'v[0-9]*.*.*' | sort -V | tail -1)
latest=$(git tag -l 'v[0-9]*.*.*' | sort -V | tail -1)
if [ -z "$latest" ]; then
latest="v0.0.0"
fi

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.

4 participants