Skip to content

fix(ci): restore v0.1.{run_number} release tags and drop prerelease flag for main builds#31

Merged
liam-russell merged 1 commit into
mainfrom
copilot/audit-fix-github-ci-workflow
May 19, 2026
Merged

fix(ci): restore v0.1.{run_number} release tags and drop prerelease flag for main builds#31
liam-russell merged 1 commit into
mainfrom
copilot/audit-fix-github-ci-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 19, 2026

The electron branch merge replaced the original v0.1.{run_number} non-prerelease tagging scheme with main-{run_number} prereleases, breaking the per-build release cadence established by the Tauri-era CI.

Changes

  • Tag format: main-{run_number}v0.1.{run_number} for main branch builds, restoring the v0.1.173-style releases
  • Prerelease flag: Removed github.ref == 'refs/heads/main' from the condition — prerelease is now solely contains(github.ref_name, '-'), so stable main builds and unadorned v* tags produce full releases; only tags like v1.0.0-beta are marked pre-release
  • Release name: Dropped the explicit name: field — defaults to the tag name, matching prior behavior
# Before
tag_name: ${{ github.ref == 'refs/heads/main' && format('main-{0}', github.run_number) || github.ref_name }}
name: ${{ github.ref == 'refs/heads/main' && format('Main build {0}', github.run_number) || github.ref_name }}
prerelease: ${{ github.ref == 'refs/heads/main' || contains(github.ref_name, '-') }}

# After
tag_name: ${{ github.ref == 'refs/heads/main' && format('v0.1.{0}', github.run_number) || github.ref_name }}
prerelease: ${{ contains(github.ref_name, '-') }}

…lag for main builds

Agent-Logs-Url: https://github.com/InterestingSoftware/SproutGit/sessions/78171281-d581-42d0-843b-e359bf7ec6b6

Co-authored-by: liam-russell <17897133+liam-russell@users.noreply.github.com>
@liam-russell liam-russell marked this pull request as ready for review May 19, 2026 03:42
Copilot AI review requested due to automatic review settings May 19, 2026 03:42
@liam-russell liam-russell merged commit 615cd74 into main May 19, 2026
6 checks passed
@liam-russell liam-russell deleted the copilot/audit-fix-github-ci-workflow branch May 19, 2026 03: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

This PR restores the main-branch CI release behavior to publish stable v0.1.{run_number} releases instead of main-{run_number} prereleases.

Changes:

  • Uses v0.1.{github.run_number} as the generated tag for main builds.
  • Removes the explicit release name, allowing it to default to the tag.
  • Marks releases as prerelease only when the ref name contains -.

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.

3 participants