Skip to main content
Glama
publish.yml•1.76 kB
name: Publish to npm on: release: types: [published] workflow_dispatch: inputs: version: description: 'Version to publish (leave empty to use package.json version)' required: false type: string jobs: publish: runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci - name: Build project run: npm run build - name: Update version (if manual trigger with version) if: github.event_name == 'workflow_dispatch' && github.event.inputs.version != '' run: npm version ${{ github.event.inputs.version }} --no-git-tag-version - name: Publish to npm run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Get package info id: package run: | echo "name=$(node -p "require('./package.json').name")" >> $GITHUB_OUTPUT echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT - name: Summary run: | echo "### 🚀 Published to npm" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "**Package:** ${{ steps.package.outputs.name }}" >> $GITHUB_STEP_SUMMARY echo "**Version:** ${{ steps.package.outputs.version }}" >> $GITHUB_STEP_SUMMARY echo "**npm link:** https://www.npmjs.com/package/${{ steps.package.outputs.name }}" >> $GITHUB_STEP_SUMMARY

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/chenxizhang/m365copilot-mcp'

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