Skip to content

Commit c858b22

Browse files
Merge pull request #157 from tech-sushant/mcp-registry
Adding mcp registry workflow
2 parents af9064e + c31ee98 commit c858b22

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish to MCP Registry
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags: ["v*"]
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
contents: read
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v5
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v5
21+
with:
22+
node-version: "lts/*"
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Run tests
28+
run: npm run test --if-present
29+
30+
- name: Build package
31+
run: npm run build --if-present
32+
33+
- name: Install MCP Publisher
34+
run: |
35+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
36+
37+
- name: Login to MCP Registry
38+
run: ./mcp-publisher login github-oidc
39+
40+
- name: Publish to MCP Registry
41+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)