Add CI workflow to validate marketplace.json is valid JSON

Adds a GitHub Actions workflow that runs on PRs when .claude-plugin/marketplace.json
is modified. The workflow uses jq to validate the JSON structure.

Related Slack thread: https://anthropic.slack.com/archives/C09KU300P7F/p1769756203361729
This commit is contained in:
Claude
2026-01-30 06:57:57 +00:00
parent 27d2b86d72
commit fc15bd9403

View File

@@ -0,0 +1,23 @@
name: Validate Marketplace JSON
on:
pull_request:
paths:
- '.claude-plugin/marketplace.json'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate marketplace.json
run: |
echo "Validating .claude-plugin/marketplace.json..."
if jq empty .claude-plugin/marketplace.json 2>&1; then
echo "Valid JSON"
else
echo "Invalid JSON in .claude-plugin/marketplace.json"
exit 1
fi