Skip to main content
Glama
npm-publish.yml1.71 kB
name: npm-publish on: workflow_dispatch: inputs: dry-run: description: 'Run in dry-run mode (no actual publish)' required: false default: false type: boolean jobs: publish: runs-on: ubuntu-latest timeout-minutes: 30 permissions: contents: read id-token: write # Required for OIDC trusted publishing steps: - name: Checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Node.js uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 with: node-version-file: .tool-versions registry-url: 'https://registry.npmjs.org' - name: Update npm to latest version run: npm install -g npm@latest - name: Install dependencies run: npm ci - name: Check if version already published run: | PACKAGE_VERSION=$(node -p "require('./package.json').version") if npm view "repomix@${PACKAGE_VERSION}" version 2>/dev/null; then echo "::error::Version ${PACKAGE_VERSION} is already published to npm" exit 1 fi echo "Version ${PACKAGE_VERSION} is not yet published" - name: Lint run: npm run lint - name: Test run: npm run test-coverage - name: Build run: npm run build - name: Verify npm audit signatures run: npm audit signatures - name: Publish (dry-run) if: ${{ inputs.dry-run }} run: npm publish --provenance --access public --dry-run - name: Publish if: ${{ !inputs.dry-run }} run: npm publish --provenance --access public

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/yamadashy/repomix'

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