fix: CI/CD — replace broken bun --cwd with turbo --filter for web build
CI / typecheck + build (turbo) (push) Canceled after 0s

The deploy workflow used 'bun --cwd apps/web run build' which does NOT
work — 'bun run' doesn't support --cwd flag. Bun prints usage and exits
0, making the step silently succeed without building. Fix: use
'bun run build --filter=@mcpedia/web' (turbo workspace filtering).

Also bump actions/checkout@v4→v5 to resolve Node 20 deprecation warning.
This commit is contained in:
asepharyana
2026-08-21 11:20:06 +07:00
parent aedfb022f3
commit 90e40c4d48
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Set up Bun - name: Set up Bun
uses: oven-sh/setup-bun@v2 uses: oven-sh/setup-bun@v2
+3 -3
View File
@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Set up Bun - name: Set up Bun
uses: oven-sh/setup-bun@v2 uses: oven-sh/setup-bun@v2
@@ -31,7 +31,7 @@ jobs:
run: bun run typecheck run: bun run typecheck
- name: Build web app - name: Build web app
run: bun --cwd apps/web run build run: bun run build --filter=@mcpedia/web
- name: Deploy to VPS over SSH - name: Deploy to VPS over SSH
uses: appleboy/ssh-action@v1 uses: appleboy/ssh-action@v1
@@ -46,7 +46,7 @@ jobs:
cd /home/code/mcpedia cd /home/code/mcpedia
git pull origin main git pull origin main
/home/code/.bun/bin/bun install --frozen-lockfile /home/code/.bun/bin/bun install --frozen-lockfile
/home/code/.bun/bin/bun --cwd apps/web run build /home/code/.bun/bin/bun run build --filter=@mcpedia/web
/home/code/.bun/bin/bun run scripts/indexer.ts /home/code/.bun/bin/bun run scripts/indexer.ts
sudo systemctl restart mcpedia-web mcpedia-api mcpedia-mcp mcpedia-worker sudo systemctl restart mcpedia-web mcpedia-api mcpedia-mcp mcpedia-worker
sleep 3 sleep 3