Problem
The create-release.yml workflow does not set the prerelease flag explicitly. GitHub's legacy auto-detection marked v0.1.0 as a pre-release, requiring a manual fix via the UI.
Proposed change
Add a prerelease condition to the softprops/action-gh-release step that checks for a - in the tag name (per semver spec, pre-release versions use a hyphen):
prerelease: ${{ contains(github.ref_name, '-') }}
This ensures:
- Tags like
v0.1.0-rc1, v1.0.0-alpha.2 → marked as Pre-release
- Tags like
v0.1.0, v1.0.0 → marked as Release
File to change
.github/workflows/create-release.yml — the Create GitHub Release step (currently lines 122-131).
Problem
The
create-release.ymlworkflow does not set theprereleaseflag explicitly. GitHub's legacy auto-detection markedv0.1.0as a pre-release, requiring a manual fix via the UI.Proposed change
Add a
prereleasecondition to thesoftprops/action-gh-releasestep that checks for a-in the tag name (per semver spec, pre-release versions use a hyphen):This ensures:
v0.1.0-rc1,v1.0.0-alpha.2→ marked as Pre-releasev0.1.0,v1.0.0→ marked as ReleaseFile to change
.github/workflows/create-release.yml— theCreate GitHub Releasestep (currently lines 122-131).