File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 exit 1
5151 fi
5252
53+ # A pinned release with its SHA-256 (from registry_<version>_checksums.txt
54+ # of that release): this job can prove its identity to npm, so it must
55+ # not run whatever "latest" is. Change both values together.
56+ - name : Install mcp-publisher
57+ env :
58+ MCP_PUBLISHER_VERSION : v1.8.4
59+ MCP_PUBLISHER_SHA256 : 5dc2fd415369c73551259f31cd33e2aacc9e0d1021e7f08fef1492d93b781628
60+ run : |
61+ curl -fsSL -o mcp-publisher.tar.gz "https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}/mcp-publisher_linux_amd64.tar.gz"
62+ echo "${MCP_PUBLISHER_SHA256} mcp-publisher.tar.gz" | sha256sum --check --strict
63+ tar xzf mcp-publisher.tar.gz mcp-publisher
64+ # Before the npm step, so a bad server.json stops the release early.
65+ ./mcp-publisher validate server.json
66+
5367 # The first version is published by hand (npm can set up trusted
5468 # publishing only for a package that exists), so skip a published version.
5569 - name : Publish to npm
6175 npm publish --access public
6276 fi
6377
64- - name : Install mcp-publisher
65- run : |
66- curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
67-
6878 - name : Publish to the MCP Registry
6979 run : |
7080 ./mcp-publisher login github-oidc
You can’t perform that action at this time.
0 commit comments