chore: add a temporary OIDC-based registry publish workflow #2
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: | ||
| workflow_dispatch: | ||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| environment: Production | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| needs: | ||
| - check | ||
| if: needs.check.outputs.VERSION_EXISTS == 'false' | ||
| steps: | ||
| - uses: GitHubSecurityLab/actions-permissions/monitor@v1 | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: package.json | ||
| registry-url: "https://registry.npmjs.org" | ||
| cache: "npm" | ||
| - name: Build package | ||
| run: | | ||
| npm ci | ||
| npm run build | ||
| - name: Install MCP Publisher | ||
| run: | | ||
| curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher | ||
| - name: Login to MCP Registry | ||
| run: ./mcp-publisher login github-oidc | ||
| - name: Publish to MCP Registry | ||
| run: ./mcp-publisher publish | ||