File tree Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- name : Publish to npm and MCP Registry
1+ name : Publish to npm
22
33on :
44 push :
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-
You can’t perform that action at this time.
0 commit comments