feat: add support for prereleases#6
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive support for prerelease versioning to the semantic versioning GitHub Actions workflows. It enables generating prerelease versions (e.g., 1.2.3-rc.1) with custom identifiers and ensures proper release note generation for both stable and prerelease workflows.
Key changes include:
- Added
is_prereleaseandprerelease_nameworkflow inputs for prerelease configuration - Enhanced version calculation logic to handle both stable and prerelease tag detection and incrementing
- Improved release workflow to conditionally create prereleases and generate accurate changelogs
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/semver-version.yml |
Major enhancement adding prerelease inputs, sophisticated tag parsing logic, and conditional release creation |
.github/workflows/release-semver-version.yml |
Simple addition of prerelease input parameter passthrough |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@MichaMican I've opened a new pull request, #7, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: MichaMican <45571948+MichaMican@users.noreply.github.com>
|
@copilot adapt the readme to include the new inputs |
Co-authored-by: a-mnich <56564725+a-mnich@users.noreply.github.com>
Escape regex metacharacters in prerelease_name before pattern matching
docs: document prerelease workflow inputs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

closes #2
This pull request adds support for prerelease versioning to the semantic versioning GitHub Actions workflows. It introduces new workflow inputs for prerelease handling, updates the version calculation logic to distinguish between stable and prerelease tags, and ensures that release notes are generated from the correct base tag for both stable and prerelease releases.
Prerelease versioning support:
is_prereleaseandprerelease_nameinputs to.github/workflows/semver-version.ymlto allow generating prerelease versions (e.g.,1.2.3-rc.1) and specifying a custom prerelease identifier.Release workflow improvements:
is_prereleaseinput to the release workflow and used it to conditionally add the--prereleaseflag to thegh release createcommand. [1] [2] [3] [4]previous_tag_for_changelog), whether releasing a stable or prerelease version. [1] [2] [3]Version calculation and changelog generation:
These changes make the release process more flexible and robust, supporting both stable and prerelease workflows.