We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChangingSelf/maicraft-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
npm-publish.yml•887 B
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
# 触发条件:推送到main分支时(包括合并PR到main)
on:
push:
branches: [ main ]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest # 使用最新版pnpm
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: pnpm install --frozen-lockfile # 类似npm ci,严格遵循lockfile
- run: pnpm run build # 编译ts为js
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}