Update package.json to include repository information and adjust bin … #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to MCP Registry | |
| on: | |
| push: | |
| tags: ['v*'] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # Required for OIDC authentication | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install Node.js (sets registry + auth) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| registry-url: 'https://registry.npmjs.org' | |
| scope: '@railway' | |
| - name: Setup Go (for mcp-publisher build) | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build package | |
| run: pnpm run build | |
| - name: Publish to npm | |
| run: npm publish --provenance | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Install MCP Publisher | |
| run: | | |
| # Build publisher from source (requires Go) | |
| git clone https://github.com/modelcontextprotocol/registry publisher-repo | |
| cd publisher-repo | |
| make publisher | |
| cp cmd/publisher/bin/mcp-publisher ../mcp-publisher | |
| cd .. | |
| chmod +x mcp-publisher | |
| - name: Login to MCP Registry | |
| run: ./mcp-publisher login github-oidc | |
| - name: Publish to MCP Registry | |
| run: ./mcp-publisher publish |