Skip to content

Commit 37da563

Browse files
committed
fix CI
1 parent d0f0334 commit 37da563

File tree

5 files changed

+36
-13
lines changed

5 files changed

+36
-13
lines changed

.github/workflows/mcp-diff.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22+
- name: Set up Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
27+
- name: Build UI
28+
run: script/build-ui
29+
2230
- name: Run MCP Server Diff
2331
uses: SamMorrowDrums/mcp-server-diff@v2.3.5
2432
with:

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@ conformance-report/
2828
ui/dist/
2929
ui/node_modules/
3030

31-
# Embedded UI assets are committed (built from ui/)
32-
31+
# Embedded UI assets (built from ui/)
3332
pkg/github/ui_dist/

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ COPY ui/ ./
66
RUN npm run build && \
77
mkdir -p /ui/out && \
88
mv dist/src/apps/get-me/index.html /ui/out/get-me.html && \
9-
mv dist/src/apps/create-issue/index.html /ui/out/create-issue.html
9+
mv dist/src/apps/issue-write/index.html /ui/out/issue-write.html && \
10+
mv dist/src/apps/pr-write/index.html /ui/out/pr-write.html
1011

1112
FROM golang:1.25.6-alpine AS build
1213
ARG VERSION="dev"

ui/package-lock.json

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

ui/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"description": "MCP App UIs for github-mcp-server using Primer React",
77
"scripts": {
88
"build": "npm run build:get-me && npm run build:issue-write && npm run build:pr-write",
9-
"build:get-me": "APP=get-me vite build",
10-
"build:issue-write": "APP=issue-write vite build",
11-
"build:pr-write": "APP=pr-write vite build",
9+
"build:get-me": "cross-env APP=get-me vite build",
10+
"build:issue-write": "cross-env APP=issue-write vite build",
11+
"build:pr-write": "cross-env APP=pr-write vite build",
1212
"dev": "npm run build",
1313
"typecheck": "tsc --noEmit",
1414
"clean": "rm -rf dist"
@@ -27,6 +27,7 @@
2727
"@types/react": "^18.0.0",
2828
"@types/react-dom": "^18.0.0",
2929
"@vitejs/plugin-react": "^4.3.0",
30+
"cross-env": "^7.0.3",
3031
"typescript": "^5.7.0",
3132
"vite": "^6.0.0",
3233
"vite-plugin-singlefile": "^2.0.0"

0 commit comments

Comments
 (0)