We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/langadventurellc/task-trellis-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
publish.yml•1.44 KiB
name: Publish Package to NPM
on:
push:
tags:
- "v*" # Matches v1.0.0, v2.1.0-beta.1, etc.
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up mise
uses: jdx/mise-action@v2
- name: Setup Node.js registry
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org/"
- name: Install dependencies
run: npm ci
- name: Run quality checks
run: |
mise run lint
mise run format
mise run test
mise run build
mise run type-check
- name: Extract version from tag
id: version
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/v}
echo "version=$TAG_VERSION" >> $GITHUB_OUTPUT
# Determine if this is a prerelease and set appropriate tag
if [[ "$TAG_VERSION" == *"-"* ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
echo "npm_tag=beta" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
echo "npm_tag=latest" >> $GITHUB_OUTPUT
fi
- name: Update package.json version
run: |
npm version ${{ steps.version.outputs.version }} --no-git-tag-version
- name: Publish to NPM
run: npm publish --tag ${{ steps.version.outputs.npm_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}