We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/divyeshradadiya/serpex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
name: Publish to npm
permissions:
contents: write # required to push tags/commits
packages: write # optional: for package-related permissions
on:
push:
branches:
- main
paths:
- 'src/**'
- 'package.json'
- '.github/workflows/publish-npm.yml'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
persist-credentials: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Build TypeScript
run: pnpm build
- name: Bump version and push tag
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
npm version patch --no-git-tag-version
git add package.json pnpm-lock.yaml
git commit -m "chore: bump version to $(node -p 'require(\"./package.json\").version')"
git tag "v$(node -p 'require(\"./package.json\").version')"
git push --follow-tags
- name: Publish to npm
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}