@@ -21,35 +21,49 @@ jobs:
2121 - name : Checkout
2222 uses : actions/checkout@v4
2323
24- - name : Setup pnpm
25- uses : pnpm/action-setup@v4
24+ - name : Setup Bun
25+ uses : oven-sh/setup-bun@v1
26+ with :
27+ bun-version : latest
2628
2729 - name : Setup Node.js
2830 uses : actions/setup-node@v4
2931 with :
3032 node-version : " 22"
31- cache : " pnpm"
3233
3334 - name : Install dependencies
34- run : pnpm install
35+ run : bun install
3536
3637 - name : Build all packages
37- run : pnpm -r --filter './packages/*' build
38+ run : bun run --filter './packages/*' build
3839
3940 - name : Build all apps
40- run : pnpm -r --filter './apps/*' --filter '!./apps/mcp-cafe24-admin-example' build
41+ run : |
42+ for app in apps/*; do
43+ if [ "$app" == "apps/mcp-cafe24-admin-example" ]; then continue; fi
44+ if [ -d "$app" ]; then
45+ echo "Building $app..."
46+ bun run --filter "./$app" build
47+ fi
48+ done
4149
4250 - name : Merge all apps to deploy directory
4351 run : |
4452 mkdir -p deploy_dist
4553
46- pnpm -r --filter './apps/*' --filter '!./apps/mcp-cafe24-admin-example' exec -- sh -c '
47- if [ -d "out" ]; then
48- app_dir=$(basename $(pwd))
49- echo "Copying $app_dir..."
50- cp -r out "../../deploy_dist/$app_dir"
54+ for app in apps/*; do
55+ if [ "$app" == "apps/mcp-cafe24-admin-example" ]; then continue; fi
56+ if [ -d "$app" ]; then
57+ (
58+ cd "$app"
59+ if [ -d "out" ]; then
60+ app_dir=$(basename $(pwd))
61+ echo "Copying $app_dir..."
62+ cp -r out "../../deploy_dist/$app_dir"
63+ fi
64+ )
5165 fi
52- '
66+ done
5367
5468 - name : Generate index.html
5569 run : |
@@ -93,14 +107,20 @@ jobs:
93107 <ul class="app-list">
94108 EOF
95109
96- pnpm -r --filter './apps/*' --filter '!./apps/mcp-cafe24-admin-example' exec -- sh -c '
97- app_name=$(basename $(pwd))
98- echo " <li class=\"app-item\">" >> ../../deploy_dist/index.html
99- echo " <a href=\"/pkgs/${app_name}/\" class=\"app-link\">" >> ../../deploy_dist/index.html
100- echo " 🚀 ${app_name} →" >> ../../deploy_dist/index.html
101- echo " </a>" >> ../../deploy_dist/index.html
102- echo " </li>" >> ../../deploy_dist/index.html
103- '
110+ for app in apps/*; do
111+ if [ "$app" == "apps/mcp-cafe24-admin-example" ]; then continue; fi
112+ if [ -d "$app" ]; then
113+ (
114+ cd "$app"
115+ app_name=$(basename $(pwd))
116+ echo " <li class=\"app-item\">" >> ../../deploy_dist/index.html
117+ echo " <a href=\"/pkgs/${app_name}/\" class=\"app-link\">" >> ../../deploy_dist/index.html
118+ echo " 🚀 ${app_name} →" >> ../../deploy_dist/index.html
119+ echo " </a>" >> ../../deploy_dist/index.html
120+ echo " </li>" >> ../../deploy_dist/index.html
121+ )
122+ fi
123+ done
104124
105125 cat >> deploy_dist/index.html << EOF
106126 </ul>
0 commit comments