From 246912f5963a7ab44cc36288e7fa1bcee7b50cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Thu, 26 Mar 2026 12:08:23 +0100 Subject: [PATCH] chore: add claude-code to release-integration script Support plugin.json version bumping for Claude Code plugin releases. --- scripts/release-integration.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/release-integration.sh b/scripts/release-integration.sh index 12405228..ba632114 100755 --- a/scripts/release-integration.sh +++ b/scripts/release-integration.sh @@ -13,7 +13,7 @@ print_info() { echo -e "${GREEN}[INFO]${NC} $1"; } print_warn() { echo -e "${YELLOW}[WARN]${NC} $1"; } print_error() { echo -e "${RED}[ERROR]${NC} $1"; } -VALID_INTEGRATIONS=("litellm" "pydantic-ai" "crewai" "ai-sdk" "chat" "openclaw" "langgraph" "nemoclaw" "strands") +VALID_INTEGRATIONS=("litellm" "pydantic-ai" "crewai" "ai-sdk" "chat" "openclaw" "langgraph" "nemoclaw" "strands" "claude-code") usage() { print_error "Usage: $0 " @@ -112,8 +112,12 @@ elif [ -f "$INTEGRATION_DIR/package.json" ]; then print_info "Updating version in $INTEGRATION_DIR/package.json" sed -i.bak "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" "$INTEGRATION_DIR/package.json" rm "$INTEGRATION_DIR/package.json.bak" +elif [ -f "$INTEGRATION_DIR/.claude-plugin/plugin.json" ]; then + print_info "Updating version in $INTEGRATION_DIR/.claude-plugin/plugin.json" + sed -i.bak "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" "$INTEGRATION_DIR/.claude-plugin/plugin.json" + rm "$INTEGRATION_DIR/.claude-plugin/plugin.json.bak" else - print_error "No pyproject.toml or package.json found in $INTEGRATION_DIR" + print_error "No pyproject.toml, package.json, or plugin.json found in $INTEGRATION_DIR" exit 1 fi