Skip to main content
Glama
ci.yml2.33 kB
# .github/workflows/ci.yml name: CI on: push: branches: [ main ] tags: [ 'v*.*.*' ] pull_request: branches: [ main ] jobs: publish: name: Publish Package runs-on: ubuntu-latest needs: [test] permissions: contents: write if: startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Use Node.js uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' registry-url: 'https://registry.npmjs.org/' - name: Install Dependencies run: npm ci - name: Configure Git Identity run: | git config user.name "GitHub Actions" git config user.email "actions@github.com" - name: Get Version Tag id: get_version run: echo "VERSION=$(echo ${GITHUB.REF} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT - name: Run Build (Prepare) run: npm run build - name: Publish NPM Package run: npm publish --no-git-checks --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Greate Github Release uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.ref }} name: Release ${{ steps.get_version.outputs.VERSION }} generate_release_notes: true build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - run: npm install - run: npm run build --if-present - uses: actions/upload-artifact@v4 with: name: build-artifacts path: build/ lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - run: npm install - run: npm run lint test: needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - run: npm install - uses: actions/download-artifact@v4 with: name: build-artifacts path: build/ - run: npm test

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/sunub/obsidian-mcp-server'

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