Skip to content

Setup bun and bump version #8

Setup bun and bump version

Setup bun and bump version #8

name: Publish to MCP Registry
on:
release:
types: [published]
push:
branches: [main]
paths: ['server.json', 'package.json']
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build project
run: bun run build
- name: Validate server.json
run: bun validate-server.mjs
- name: Download mcp-publisher
run: |
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_linux_amd64.tar.gz" | tar xz mcp-publisher
chmod +x mcp-publisher
- name: Authenticate with GitHub OIDC
run: ./mcp-publisher login github-oidc
- name: Publish to MCP Registry
run: ./mcp-publisher publish