Skip to content

Commit e9a4c71

Browse files
authored
fix: mcp registry release (#82)
* fix: mcp registry release * fixup! fix: mcp registry release
1 parent 8c050ef commit e9a4c71

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

.github/workflows/mcpb-pack.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,23 @@ jobs:
7474
asset_name: ${{ env.MCPB_FULL_FILENAME }}
7575
tag: ${{ github.ref }}
7676
overwrite: true
77+
78+
publish-mcp:
79+
needs: build-and-release
80+
runs-on: ubuntu-latest
81+
steps:
82+
- name: Checkout repository
83+
uses: actions/checkout@v5
84+
85+
- name: Install MCP Publisher
86+
run: |
87+
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
88+
chmod +x mcp-publisher
89+
90+
- name: Login to MCP Registry
91+
run: |
92+
echo "${{ secrets.MCP_PRIVATE_KEY }}" > key.pem
93+
./mcp-publisher login dns --domain postman.com --private-key $(openssl pkey -in key.pem -noout -text | grep -A3 "priv:" | tail -n +2 | tr -d ' :\n')
94+
95+
- name: Publish to MCP Registry
96+
run: ./mcp-publisher publish

.github/workflows/publish.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to npm and MCP Registry
1+
name: Publish to npm
22

33
on:
44
push:
@@ -28,17 +28,3 @@ jobs:
2828
run: npm publish --provenance --access public
2929
env:
3030
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
32-
- name: Install MCP Publisher
33-
run: |
34-
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
35-
chmod +x mcp-publisher
36-
37-
- name: Login to MCP Registry
38-
run: |
39-
echo "${{ secrets.MCP_PRIVATE_KEY }}" > key.pem
40-
./mcp-publisher login dns --domain postman.com --private-key $(openssl pkey -in key.pem -noout -text | grep -A3 "priv:" | tail -n +2 | tr -d ' :\n')
41-
42-
- name: Publish to MCP Registry
43-
run: ./mcp-publisher publish
44-

0 commit comments

Comments
 (0)