From 90e40c4d480bd96084fb4aca8a50c2564882fd8e Mon Sep 17 00:00:00 2001 From: asepharyana Date: Fri, 21 Aug 2026 11:20:06 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20CI/CD=20=E2=80=94=20replace=20broken=20b?= =?UTF-8?q?un=20--cwd=20with=20turbo=20--filter=20for=20web=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/workflows/ci.yml | 2 +- .github/workflows/deploy.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fa1170..eb14110 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Bun uses: oven-sh/setup-bun@v2 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 322695a..bcffec6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Bun uses: oven-sh/setup-bun@v2 @@ -31,7 +31,7 @@ jobs: run: bun run typecheck - name: Build web app - run: bun --cwd apps/web run build + run: bun run build --filter=@mcpedia/web - name: Deploy to VPS over SSH uses: appleboy/ssh-action@v1 @@ -46,7 +46,7 @@ jobs: cd /home/code/mcpedia git pull origin main /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 sudo systemctl restart mcpedia-web mcpedia-api mcpedia-mcp mcpedia-worker sleep 3