Add Claude Code plugin support #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Plugin Configuration | |
| on: | |
| pull_request: | |
| paths: | |
| - '.claude-plugin/**' | |
| - 'package.json' | |
| push: | |
| branches: [main] | |
| paths: | |
| - '.claude-plugin/**' | |
| - 'package.json' | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install Claude CLI | |
| run: npm install -g @anthropic-ai/claude-code | |
| - name: Validate Plugin Configuration | |
| run: claude plugin validate . | |
| - name: Check Plugin Files Exist | |
| run: | | |
| if [ ! -f ".claude-plugin/marketplace.json" ]; then | |
| echo "Error: .claude-plugin/marketplace.json not found" | |
| exit 1 | |
| fi | |
| echo "✓ Marketplace file exists" | |
| - name: Validate JSON Syntax | |
| run: | | |
| echo "Validating marketplace.json syntax..." | |
| cat .claude-plugin/marketplace.json | jq empty | |
| echo "✓ JSON syntax is valid" | |