Skip to content

Commit 7c94e18

Browse files
authored
feat: modifying github action to publish to npm registry (#70)
1 parent ec18af3 commit 7c94e18

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to npm
1+
name: Publish to npm and MCP Registry
22

33
on:
44
push:
@@ -29,4 +29,15 @@ jobs:
2929
env:
3030
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3131

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 mcp-publisher
35+
36+
- name: Login to MCP Registry
37+
run: |
38+
echo "${{ secrets.MCP_PRIVATE_KEY }}" > key.pem
39+
mcp-publisher login dns --domain postman.com --private-key-file key.pem
40+
41+
- name: Publish to MCP Registry
42+
run: ./mcp-publisher publish
3243

0 commit comments

Comments
 (0)