File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments