Skip to content

Commit 513fbee

Browse files
its-mashMohammod Al Amin Ashik
andauthored
Fix release (#5)
Co-authored-by: Mohammod Al Amin Ashik <alamin.ashik@sitecore.com>
1 parent bcadf15 commit 513fbee

6 files changed

Lines changed: 92 additions & 5 deletions

File tree

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3-
"changelog": "@changesets/cli/changelog",
3+
"changelog": ["@changesets/changelog-github", { "repo": "MCP-Mux/mcp-mux" }],
44
"commit": false,
55
"fixed": [],
66
"linked": [],

.changeset/fix-release-workflow.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@mcpmux/desktop": patch
3+
---
4+
5+
Fix release workflow to properly create GitHub releases with changelog and binaries. The workflow now:
6+
- Creates GitHub releases with proper release notes from changesets
7+
- Uploads MSI, DEB, DMG, and AppImage packages to the release
8+
- Generates updater JSON with signatures for auto-updates
9+
- Uses @changesets/changelog-github for better changelog formatting with PR/author links

.github/workflows/release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
outputs:
2525
published: ${{ steps.changesets.outputs.published }}
2626
publishedPackages: ${{ steps.changesets.outputs.publishedPackages }}
27+
version: ${{ steps.get-version.outputs.version }}
2728
steps:
2829
- uses: actions/checkout@v4
2930
with:
@@ -44,9 +45,18 @@ jobs:
4445
title: 'chore: version packages'
4546
commit: 'chore: version packages'
4647
version: pnpm changeset version
48+
publish: pnpm run publish
49+
createGithubReleases: true
4750
env:
4851
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4952

53+
- name: Get version from package.json
54+
id: get-version
55+
if: steps.changesets.outputs.published == 'true'
56+
run: |
57+
VERSION=$(node -p "require('./apps/desktop/package.json').version")
58+
echo "version=$VERSION" >> $GITHUB_OUTPUT
59+
5060
# ─────────────────────────────────────────────────────────────
5161
# Build and Release: Triggered when changesets publishes
5262
# ─────────────────────────────────────────────────────────────
@@ -136,9 +146,9 @@ jobs:
136146
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
137147
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
138148
with:
139-
tagName: v__VERSION__
140-
releaseName: 'McpMux v__VERSION__'
141-
releaseBody: 'See the changelog for details.'
149+
tagName: v${{ needs.changesets.outputs.version }}
150+
releaseName: 'McpMux v${{ needs.changesets.outputs.version }}'
151+
releaseBody: ''
142152
releaseDraft: false
143153
prerelease: false
144154
updaterJsonKeepUniversal: true

apps/desktop/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"endpoints": [
2121
"https://github.com/MCP-Mux/mcp-mux/releases/latest/download/latest.json"
2222
],
23-
"pubkey": ""
23+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDJDRTAxQ0Y3NDI0RjkwQTkKUldTcGtFOUM5eHpnTEFYb0ZnSjNXbURvSVhYUVdwbDFROW1iMTBPWGNDZ2VlVUNQdGpBQ3BCczYK"
2424
}
2525
},
2626
"app": {

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build": "pnpm --filter @mcpmux/desktop build",
1010
"changeset": "changeset",
1111
"version": "changeset version",
12+
"publish": "echo 'Publishing handled by Tauri in build-release job'",
1213
"release:key": "pnpm --filter @mcpmux/desktop tauri signer generate -w ~/.tauri/mcpmux.key",
1314
"test": "pnpm test:rust && pnpm test:ts",
1415
"test:rust": "cargo nextest run --workspace",
@@ -33,6 +34,7 @@
3334
"clean": "pnpm -r clean && cargo clean"
3435
},
3536
"devDependencies": {
37+
"@changesets/changelog-github": "^0.5.0",
3638
"@changesets/cli": "^2.27.0",
3739
"@modelcontextprotocol/sdk": "^1.10.0",
3840
"@playwright/test": "^1.50.0",

pnpm-lock.yaml

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)