Skip to content

Commit cf3fb4c

Browse files
Sync from the Ink Studio AI repository (5ab471e)
1 parent dd8ebf1 commit cf3fb4c

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ jobs:
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
@@ -61,10 +75,6 @@ jobs:
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

0 commit comments

Comments
 (0)