Skip to content

ci(release): skip homebrew tap and mcp registry on prerelease tags - #381

Merged
cameroncooke merged 1 commit into
mainfrom
ci/release-prerelease-handling
Apr 30, 2026
Merged

ci(release): skip homebrew tap and mcp registry on prerelease tags#381
cameroncooke merged 1 commit into
mainfrom
ci/release-prerelease-handling

Conversation

@cameroncooke

Copy link
Copy Markdown
Contributor

Mark GitHub releases as prereleases when the tag carries a SemVer prerelease suffix (e.g. 2.4.0-beta.1), and skip the update_homebrew_tap and mcp_registry jobs for those tags.

Without this, pushing a beta tag would:

  • overwrite Formula/xcodebuildmcp.rb in the homebrew-xcodebuildmcp tap, pushing every brew install/brew upgrade user onto the beta build, and
  • publish the prerelease to the MCP Registry as the canonical version.

npm continues to publish under the beta/alpha/rc dist-tag (the resolver in Resolve npm tag from version is unchanged), and the portable tarballs are still attached to the GitHub release. Only the channels that have no separate prerelease lane are gated.

The condition uses contains(..., '-') because every SemVer prerelease has a - and no stable release does, matching the validation regex in Get version from tag or input.

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.
@pkg-pr-new

pkg-pr-new Bot commented Apr 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/xcodebuildmcp@381

commit: 7391848

@cameroncooke
cameroncooke merged commit 92c9fe7 into main Apr 30, 2026
21 checks passed
@cameroncooke
cameroncooke deleted the ci/release-prerelease-handling branch April 30, 2026 18:09
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.

1 participant