Skip to content

Commit cad4af3

Browse files
chore: integrate mcp and npm publishing actions (#44)
* remove submodule checkout Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com> * Revert "remove submodule checkout" This reverts commit f2f033b. * chore: integrate publishing actions Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com> --------- Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
1 parent 2974d3d commit cad4af3

File tree

2 files changed

+18
-54
lines changed

2 files changed

+18
-54
lines changed

.github/workflows/publish-mcp.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
build:
1616
runs-on: macos-latest
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v5
1919
with:
2020
submodules: recursive
21+
fetch-depth: 0 # Fetch all tags for version detection
2122
- name: Setup submodules sparse-checkout
2223
run: |
2324
chmod +x scripts/setup-submodules-sparse.sh
@@ -34,3 +35,19 @@ jobs:
3435
env:
3536
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3637
name: Release
38+
# MCP publishing
39+
- name: Update server.json version to match package.json
40+
run: |
41+
VERSION=$(node -p "require('./package.json').version")
42+
jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > tmp && mv tmp server.json
43+
echo "Updated server.json version to $VERSION"
44+
45+
- name: Download MCP Publisher
46+
run: |
47+
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
48+
49+
- name: Publish to MCP Registry
50+
run: |
51+
chmod +x mcp-publisher
52+
./mcp-publisher login github-oidc
53+
./mcp-publisher publish

0 commit comments

Comments
 (0)