Skip to content

chore: skip release artifacts for pre-release tags#42

Merged
beonde merged 1 commit intomainfrom
chore/release-skip-prerelease
Mar 20, 2026
Merged

chore: skip release artifacts for pre-release tags#42
beonde merged 1 commit intomainfrom
chore/release-skip-prerelease

Conversation

@beonde
Copy link
Member

@beonde beonde commented Mar 20, 2026

Adds if: "!contains(github.ref, '-')" to both build-cli and test jobs in the release workflow.

Why: Pre-release tags like v2.6.0-rc.1 should be valid Go module versions for cross-repo development, but should NOT trigger CLI binary builds or GitHub Release creation.

How it works: Semver pre-release versions always contain a hyphen (-). The condition skips the jobs when the tag ref contains one.

Use case: During RFC-005 implementation, capiscio-server needs to reference pkg/pip/ from capiscio-core main. A pre-release tag gives us a clean semver reference without producing release artifacts.

Add if condition to build-cli and test jobs so that pre-release
tags (e.g. v2.6.0-rc.1) do not trigger CLI binary builds or
GitHub Release creation. This enables using semver pre-release
tags for Go module resolution during cross-repo development.
Copilot AI review requested due to automatic review settings March 20, 2026 16:59
@codecov
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
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 release workflow to avoid producing CLI binaries and GitHub Releases for semver pre-release tags (e.g., v2.6.0-rc.1), while still allowing those tags to be used as valid Go module versions across repos.

Changes:

  • Add a job-level if: "!contains(github.ref, '-')" guard to build-cli.
  • Add the same guard to test to skip running tests on pre-release tag pushes.

@beonde beonde merged commit 80444d5 into main Mar 20, 2026
8 checks passed
@beonde beonde deleted the chore/release-skip-prerelease branch March 20, 2026 17:02
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