We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yardz/ayrshare-unofficial-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
name: Publish to npm
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Upgrade npm for OIDC trusted publishing
run: |
npm install -g npm@latest
npm config set registry https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- name: Check if version changed
id: version
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').version")
PUBLISHED=$(npm view ayrshare-unofficial-mcp version 2>/dev/null || echo "0.0.0")
if [ "$PACKAGE_VERSION" = "$PUBLISHED" ]; then
echo "skip=true" >> "$GITHUB_OUTPUT"
echo "Version $PACKAGE_VERSION already published, skipping."
else
echo "skip=false" >> "$GITHUB_OUTPUT"
echo "Publishing version $PACKAGE_VERSION (current: $PUBLISHED)"
fi
- name: Publish to npm
if: steps.version.outputs.skip == 'false'
run: npm publish --provenance --access public