Skip to content

Commit b6db383

Browse files
ci: fix MCP registry publishing (#401)
They started omitting the version the archive and rely on the url TAG
1 parent 0498611 commit b6db383

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/pre-release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ jobs:
2525

2626
- name: Install MCP Publisher
2727
run: |
28-
export TAG=$(curl -sL https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | jq -r ".tag_name")
29-
export VERSION="${TAG#v}"
3028
export OS=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
31-
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${TAG}/mcp-publisher_${VERSION}_${OS}.tar.gz" | tar xz mcp-publisher
29+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_${OS}.tar.gz" | tar xz mcp-publisher
3230
3331
- name: Verify server.json
3432
run: npm run verify-server-json-version

.github/workflows/publish-to-npm-on-tag.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ jobs:
7979

8080
- name: Install MCP Publisher
8181
run: |
82-
export TAG=$(curl -sL https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | jq -r ".tag_name")
83-
export VERSION="${TAG#v}"
8482
export OS=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
85-
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${TAG}/mcp-publisher_${VERSION}_${OS}.tar.gz" | tar xz mcp-publisher
83+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_${OS}.tar.gz" | tar xz mcp-publisher
8684
8785
- name: Login to MCP Registry
8886
run: ./mcp-publisher login github-oidc

0 commit comments

Comments
 (0)