@@ -17,7 +17,7 @@ show_help() {
1717 cat << 'EOF '
1818📦 GitHub Release Creator
1919
20- Creates releases with automatic semver bumping. Only handles GitHub release
20+ Creates releases with automatic semver bumping. Only handles GitHub release
2121creation - building and NPM publishing are handled by workflows.
2222
2323USAGE:
@@ -33,12 +33,12 @@ OPTIONS:
3333
3434EXAMPLES:
3535 (no args) Interactive minor bump
36- major Interactive major bump
36+ major Interactive major bump
3737 1.5.0 Use specific version
3838 patch --dry-run Preview patch bump
3939
4040EOF
41-
41+
4242 local highest_version=$( get_highest_version)
4343 if [[ -n " $highest_version " ]]; then
4444 echo " CURRENT: $highest_version "
@@ -64,13 +64,13 @@ parse_version() {
6464bump_version () {
6565 local current_version=$1
6666 local bump_type=$2
67-
67+
6868 local parsed=($( parse_version " $current_version " ) )
6969 local major=${parsed[0]}
7070 local minor=${parsed[1]}
7171 local patch=${parsed[2]}
7272 local prerelease=${parsed[3]:- " " }
73-
73+
7474 # Remove prerelease for stable version bumps
7575 case $bump_type in
7676 major)
@@ -104,16 +104,16 @@ validate_version() {
104104compare_versions () {
105105 local version1=$1
106106 local version2=$2
107-
107+
108108 # Remove prerelease parts for comparison
109109 local v1_stable=$( echo " $version1 " | sed -E ' s/(-.*)?$//' )
110110 local v2_stable=$( echo " $version2 " | sed -E ' s/(-.*)?$//' )
111-
111+
112112 if [[ " $v1_stable " == " $v2_stable " ]]; then
113113 echo 0
114114 return
115115 fi
116-
116+
117117 # Use sort -V to compare versions
118118 local sorted=$( printf " %s\n%s" " $v1_stable " " $v2_stable " | sort -V)
119119 if [[ " $( echo " $sorted " | head -1) " == " $v1_stable " ]]; then
@@ -197,7 +197,7 @@ if [[ -n "$BUMP_TYPE" ]]; then
197197 get_version_interactively
198198 else
199199 SUGGESTED_VERSION=$( bump_version " $HIGHEST_VERSION " " $BUMP_TYPE " )
200-
200+
201201 if ask_confirmation " $SUGGESTED_VERSION " ; then
202202 VERSION=" $SUGGESTED_VERSION "
203203 else
@@ -331,15 +331,15 @@ if [[ -n "$RUN_ID" ]]; then
331331 echo " 🔍 Watching workflow progress..."
332332 echo " (Press Ctrl+C to detach and monitor manually)"
333333 echo " "
334-
334+
335335 # Watch the workflow with exit status
336336 if gh run watch " $RUN_ID " --exit-status; then
337337 echo " "
338338 echo " ✅ Release v$VERSION completed successfully!"
339339 echo " 📦 View on NPM: https://www.npmjs.com/package/xcodebuildmcp/v/$VERSION "
340340 echo " 🎉 View release: https://github.com/cameroncooke/XcodeBuildMCP/releases/tag/v$VERSION "
341341 # MCP Registry verification link
342- echo " 🔎 Verify MCP Registry: https://registry.modelcontextprotocol.io/v0/servers?search=io.github.cameroncooke /XcodeBuildMCP&version=latest"
342+ echo " 🔎 Verify MCP Registry: https://registry.modelcontextprotocol.io/v0/servers?search=com.xcodebuildmcp /XcodeBuildMCP&version=latest
343343 else
344344 echo " "
345345 echo " ❌ CI workflow failed! "
@@ -353,15 +353,15 @@ if [[ -n "$RUN_ID" ]]; then
353353 exit 0
354354 fi
355355 echo " 🧹 Cleaning up tags only (keeping version commit)..."
356-
356+
357357 # Delete remote tag
358358 echo " - Deleting remote tag v$VERSION ..."
359359 git push origin :refs/tags/v$VERSION 2>/dev/null || true
360-
360+
361361 # Delete local tag
362362 echo " - Deleting local tag v$VERSION ..."
363363 git tag -d v$VERSION
364-
364+
365365 echo " "
366366 echo " ✅ Tag cleanup complete! "
367367 echo " "
0 commit comments