Skip to content

Commit 842fc6f

Browse files
committed
Update registry workflow and server.json with VERSION placeholder
1 parent 1ce3281 commit 842fc6f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/registry-releaser.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919
- name: Fetch tags
2020
run: git fetch --tags
2121

22-
- name: Install jq
23-
run: sudo apt-get update && sudo apt-get install -y jq
24-
2522
- name: Install MCP Publisher
2623
run: |
2724
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
@@ -42,7 +39,7 @@ jobs:
4239
TAG_VERSION=$(echo "$LATEST_TAG" | sed 's/^v//')
4340
echo "Using latest tag: $LATEST_TAG"
4441
fi
45-
jq ".version = \"$TAG_VERSION\" | .packages[].version = \"$TAG_VERSION\"" server.json > server.json.tmp && mv server.json.tmp server.json
42+
sed -i "s/\${VERSION}/$TAG_VERSION/g" server.json
4643
echo "Updated server.json version to $TAG_VERSION"
4744
4845
- name: Login to MCP Registry

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"url": "https://github.com/github/github-mcp-server",
88
"source": "github"
99
},
10-
"version": "0.0.0",
10+
"version": "${VERSION}",
1111
"packages": [
1212
{
1313
"registryType": "oci",
1414
"registryBaseUrl": "https://ghcr.io",
1515
"identifier": "ghcr.io/github/github-mcp-server",
16-
"version": "0.0.0",
16+
"version": "${VERSION}",
1717
"runtimeHint": "docker",
1818
"transport": {
1919
"type": "stdio"

0 commit comments

Comments
 (0)