Skip to content

fix: draft-then-publish release pattern and version alignment#40

Merged
KrennicMS merged 1 commit intodevelopfrom
fix/release-workflow-and-version
Mar 19, 2026
Merged

fix: draft-then-publish release pattern and version alignment#40
KrennicMS merged 1 commit intodevelopfrom
fix/release-workflow-and-version

Conversation

@KrennicMS
Copy link
Copy Markdown
Collaborator

Summary

Two fixes to the release process:

1. Version alignment

Version is purely MinVer-driven from Git tags — no hardcoded 0.5.0 references found. Nothing to change here.

2. Draft-then-publish release pattern

Replaces the single Create Release step (which would fail on re-runs due to immutable release conflicts) with a two-step pattern:

  1. Create the release as a draft and upload all artifacts
  2. Flip draft: false via actions/github-script API call

This prevents the tag_name was used by an immutable release error when workflows are re-triggered on the same tag.

Files Changed

  • .github/workflows/release.yml

- Replace single Create Release step with draft-then-publish pattern to
  avoid GitHub immutable release conflicts on workflow re-runs
- No hardcoded version references found; version is purely MinVer-driven

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@KrennicMS KrennicMS force-pushed the fix/release-workflow-and-version branch from 07d7708 to 0bc45e2 Compare March 19, 2026 10:43
@MiguelTVMS MiguelTVMS requested a review from Copilot March 19, 2026 10:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the GitHub Actions release workflow to better support re-runs on the same tag by switching to a draft-first release flow before publishing, while confirming versioning remains tag/MinVer-driven (no hardcoded version bumps needed).

Changes:

  • Create the GitHub Release as a draft while uploading artifacts.
  • Publish the release afterward via actions/github-script by flipping draft: false.

@KrennicMS KrennicMS merged commit ab5c682 into develop Mar 19, 2026
7 checks passed
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.

2 participants