0.10.4 #48
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 NPM Package | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| build-and-publish: | |
| name: Build and Publish NPM Package | |
| runs-on: ubuntu-latest # Note: Trusted publishing requires GitHub-hosted runners, not self-hosted | |
| 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: Update npm to latest version | |
| run: npm install -g npm@latest | |
| - name: Install dependencies | |
| run: npm install --ignore-scripts | |
| - name: Build package | |
| run: npm run build | |
| - name: Publish to npm | |
| run: npm publish --access public | |
| publish-mcp-registry: | |
| name: Publish to MCP Registry | |
| runs-on: ubuntu-latest | |
| needs: build-and-publish | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install mcp-publisher | |
| run: npm install -g mcp-publisher | |
| - name: Login to MCP Registry (GitHub OIDC) | |
| run: mcp-publisher login github-oidc | |
| - name: Publish to MCP Registry | |
| run: mcp-publisher publish .mcp/server.json |