Skip to content

chore: fix cicd npmjs publish #54

chore: fix cicd npmjs publish

chore: fix cicd npmjs publish #54

Workflow file for this run

name: Check
on:
pull_request:
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- run: npm ci
- run: npm run test
- name: Check JSON sorting
run: |
npm run sort
if ! git diff --quiet src/mcp_client_capabilities/mcp-clients.json; then
echo "❌ JSON is not sorted! Please run 'npm run sort' locally and commit the changes."
git diff src/mcp_client_capabilities/mcp-clients.json
exit 1
else
echo "✅ JSON is properly sorted"
fi
- name: Check README table
run: |
npm run generate-table
if ! git diff --quiet README.md; then
echo "❌ README table is not up to date! Please run 'npm run generate-table' locally and commit the changes."
git diff README.md
exit 1
else
echo "✅ README table is up to date"
fi