Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ jobs:
printf '%s %s\n' "$MCP_PUBLISHER_SHA256" "$publisher_dir/archive.tar.gz" | sha256sum --check --strict
tar -xzf "$publisher_dir/archive.tar.gz" -C "$publisher_dir" mcp-publisher
echo "$publisher_dir" >> "$GITHUB_PATH"
# The registry validates the npm version, which npm may not serve for a
# short while after the publish job finishes.
- name: Wait for npm to serve the release
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
package="$(node -p "require('./package.json').name")@${RELEASE_TAG#v}"
for attempt in $(seq 1 30); do
npm view "$package" version >/dev/null 2>&1 && exit 0
sleep 10
done
echo "$package not visible on npm after 5 minutes" >&2
exit 1
- name: Authenticate to MCP Registry
run: mcp-publisher login github-oidc
- name: Publish server to MCP Registry
Expand Down
Loading