From 739184817801f2c6cffe50f3abfca4689805201e Mon Sep 17 00:00:00 2001 From: Cameron Cooke Date: Thu, 30 Apr 2026 19:05:25 +0100 Subject: [PATCH] ci(release): skip homebrew tap and mcp registry on prerelease tags Mark GitHub releases as prerelease when the version contains a hyphen (e.g. 2.4.0-beta.1), and gate the update_homebrew_tap and mcp_registry jobs on stable versions only. Without this, a beta tag would overwrite the main Homebrew formula and push beta builds onto every brew install user, and would publish the prerelease to the MCP Registry as if it were the canonical version. --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2434ab101..914d7d28c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -158,7 +158,7 @@ jobs: files: | xcodebuildmcp-${{ steps.get_version.outputs.VERSION }}.tgz draft: false - prerelease: false + prerelease: ${{ contains(steps.get_version.outputs.VERSION, '-') }} - name: Summary env: @@ -176,7 +176,7 @@ jobs: fi mcp_registry: - if: github.event_name == 'push' + if: github.event_name == 'push' && !contains(needs.release.outputs.version, '-') needs: release runs-on: ubuntu-latest env: @@ -391,7 +391,7 @@ jobs: --repo "$REPOSITORY" update_homebrew_tap: - if: github.event_name == 'push' + if: github.event_name == 'push' && !contains(needs.release.outputs.version, '-') needs: [release, build_and_package_macos, publish_portable_assets] runs-on: ubuntu-latest env: