Skip to content

Commit 14e58d6

Browse files
committed
Consolidate workflows: Unified NPM + MCP Registry + GitHub Release
- Merged publish.yml and publish-mcp.yml into single release.yml - Single workflow now publishes to all three platforms - Eliminates duplicate execution issue - Uses NPMTOKEN secret for NPM authentication
1 parent aca489b commit 14e58d6

File tree

2 files changed

+25
-39
lines changed

2 files changed

+25
-39
lines changed

.github/workflows/publish-mcp.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to NPM and GitHub Release
1+
name: Release to NPM, MCP Registry, and GitHub
22

33
on:
44
push:
@@ -7,9 +7,10 @@ on:
77

88
permissions:
99
contents: write
10+
id-token: write
1011

1112
jobs:
12-
publish:
13+
release:
1314
runs-on: ubuntu-latest
1415

1516
steps:
@@ -42,11 +43,24 @@ jobs:
4243
- name: Install dependencies
4344
run: npm ci
4445

46+
# Step 1: Publish to NPM
4547
- name: Publish to NPM
4648
run: npm publish --access public
4749
env:
4850
NODE_AUTH_TOKEN: ${{ secrets.NPMTOKEN }}
4951

52+
# Step 2: Publish to MCP Registry
53+
- name: Install MCP Publisher
54+
run: |
55+
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
56+
57+
- name: Login to MCP Registry
58+
run: ./mcp-publisher login github-oidc
59+
60+
- name: Publish to MCP Registry
61+
run: ./mcp-publisher publish
62+
63+
# Step 3: Create GitHub Release
5064
- name: Create GitHub Release
5165
uses: actions/create-release@v1
5266
env:
@@ -65,6 +79,7 @@ jobs:
6579
6680
## 📦 Installation
6781
82+
### Via NPM (Recommended)
6883
```bash
6984
npm install fo-semantic-mcp@${{ steps.version.outputs.version }}
7085
```
@@ -74,6 +89,9 @@ jobs:
7489
npm update fo-semantic-mcp
7590
```
7691
92+
### Via MCP Registry
93+
Available in the official MCP Registry - search for "fo-semantic-mcp"
94+
7795
## 🚀 Quick Start
7896
7997
1. Get your API key at https://www.xplusplus.ai
@@ -102,6 +120,11 @@ jobs:
102120
103121
---
104122
123+
**Published to:**
124+
- ✅ NPM Registry
125+
- ✅ MCP Registry
126+
- ✅ GitHub Releases
127+
105128
**Ready to transform your F&O development workflow!** 🚀
106129
draft: false
107130
prerelease: false

0 commit comments

Comments
 (0)