From fc15bd940391cd7d93ff1afb691c79441218c336 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Jan 2026 06:57:57 +0000 Subject: [PATCH] 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 --- .../workflows/validate-marketplace-json.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/validate-marketplace-json.yml diff --git a/.github/workflows/validate-marketplace-json.yml b/.github/workflows/validate-marketplace-json.yml new file mode 100644 index 0000000..e7a9045 --- /dev/null +++ b/.github/workflows/validate-marketplace-json.yml @@ -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