Skip to content

Commit 69c18cd

Browse files
committed
Make MCP Registry publishing optional (continue-on-error)
- Prevents workflow failure if version already exists in MCP Registry - NPM and GitHub Release still proceed even if MCP Registry fails - Useful for re-running workflows or manual version management
1 parent 10c82a5 commit 69c18cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,18 @@ jobs:
4949
env:
5050
NODE_AUTH_TOKEN: ${{ secrets.NPMTOKEN }}
5151

52-
# Step 2: Publish to MCP Registry
52+
# Step 2: Publish to MCP Registry (optional - won't fail workflow if version exists)
5353
- name: Install MCP Publisher
54+
continue-on-error: true
5455
run: |
5556
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
5657
5758
- name: Login to MCP Registry
59+
continue-on-error: true
5860
run: ./mcp-publisher login github-oidc
5961

6062
- name: Publish to MCP Registry
63+
continue-on-error: true
6164
run: ./mcp-publisher publish
6265

6366
# Step 3: Create GitHub Release

0 commit comments

Comments
 (0)