Skip to main content
Glama
ci.yml1.8 kB
name: CI on: push: branches: [main] pull_request: branches: [main] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [18.x, 20.x, 22.x] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install dependencies run: npm ci - name: Build run: npm run build - name: Lint run: npm run lint - name: Test run: npm test publish: needs: build runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' && github.event_name == 'push' steps: - uses: actions/checkout@v4 - name: Use Node.js 20.x uses: actions/setup-node@v4 with: node-version: 20.x cache: 'npm' registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci - name: Build run: npm run build - name: Check if version changed id: version run: | CURRENT_VERSION=$(node -p "require('./package.json').version") NPM_VERSION=$(npm view coolify-mcp-tools version 2>/dev/null || echo "0.0.0") if [ "$CURRENT_VERSION" != "$NPM_VERSION" ]; then echo "changed=true" >> $GITHUB_OUTPUT echo "Version changed from $NPM_VERSION to $CURRENT_VERSION" else echo "changed=false" >> $GITHUB_OUTPUT echo "Version unchanged at $CURRENT_VERSION" fi - name: Publish to npm if: steps.version.outputs.changed == 'true' run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jplansink/coolify-mcp-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server