From da90651e0d3f71fb650b813cc339387fde447d4f Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Sat, 13 Sep 2025 14:07:57 +0200 Subject: [PATCH] Add Claude Code CLI installation to workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### 🚀 Features - Added step to install Claude Code CLI in GitHub Actions workflow - Uses official installation script from claude.ai - Adds CLI to PATH for subsequent steps ### 🔧 Improvements - Enables AI-powered changelog generation in automated workflows - Fails gracefully if CLI installation fails - Ensures claude-code command is available for changelog generation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/version-and-publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/version-and-publish.yml b/.github/workflows/version-and-publish.yml index 3c3d2ec..9bb26db 100644 --- a/.github/workflows/version-and-publish.yml +++ b/.github/workflows/version-and-publish.yml @@ -97,6 +97,12 @@ jobs: echo "source-version=$SOURCE_VERSION" >> $GITHUB_OUTPUT echo "target-version=$TARGET_VERSION" >> $GITHUB_OUTPUT + - name: Install Claude Code CLI + run: | + echo "🤖 Installing Claude Code CLI..." + curl -fsSL https://claude.ai/cli/install.sh | sh + echo "$HOME/.local/bin" >> $GITHUB_PATH + - name: Generate changelog with Claude id: changelog run: | @@ -110,7 +116,7 @@ jobs: # Generate changelog using Claude (fail if it fails) if ! command -v claude-code >/dev/null 2>&1; then - echo "❌ ERROR: Claude CLI not found. Please ensure Claude Code is properly installed." + echo "❌ ERROR: Claude CLI installation failed." exit 1 fi