Make MCP Server

Official
name: Node.js CI/CD on: workflow_dispatch: {} push: branches: ['*'] pull_request: branches: ['*'] jobs: build: name: Build runs-on: ubuntu-latest timeout-minutes: 10 strategy: matrix: node-version: [lts/*, current] steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm ci - name: Lint run: npm run lint --if-present - name: Run tests run: npm test --if-present publish: name: Publish if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && startsWith(github.ref, 'refs/tags/v') needs: build runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: lts/* registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci - name: Publish to npm run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}