mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 16:23:23 +00:00
Add Claude Code CLI installation to workflow
### 🚀 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 <noreply@anthropic.com>
This commit is contained in:
8
.github/workflows/version-and-publish.yml
vendored
8
.github/workflows/version-and-publish.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user