From fa695de65353f60f00e7591d3b1aeb9ad03a99c0 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Thu, 9 Oct 2025 19:19:43 -0300 Subject: [PATCH] =?UTF-8?q?ci(web):=20workspace=20server-only=20no=20runne?= =?UTF-8?q?r=20(remover=20apps/desktop=20e=20reduzir=20pnpm-workspace.yaml?= =?UTF-8?q?)\n\n-=20Evita=20EACCES=20em=20apps/desktop/node=5Fmodules=20no?= =?UTF-8?q?=20passo=20de=20install.\n-=20Mant=C3=A9m=20repo=20intacto;=20a?= =?UTF-8?q?ltera=20apenas=20o=20diret=C3=B3rio=20efetivo=20usado=20pelo=20?= =?UTF-8?q?deploy.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd-web-desktop.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index 1ade63c..9e6df90 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -149,6 +149,14 @@ jobs: cp -f "$DEFAULT_DIR/.env" "$EFFECTIVE_APP_DIR/.env" fi + - name: Prune workspace for server-only build + run: | + cd "$EFFECTIVE_APP_DIR" + # Keep only root (web) as a package in this effective workspace + printf "packages:\n - .\n\nignoredBuiltDependencies:\n - '@prisma/client'\n - '@prisma/engines'\n - '@tailwindcss/oxide'\n - esbuild\n - prisma\n - sharp\n - unrs-resolver\n" > pnpm-workspace.yaml + # Remove desktop app to avoid pnpm touching its node_modules on this runner + rm -rf apps/desktop || true + - name: Clean Next.js cache (.next) to avoid EACCES run: | cd "$EFFECTIVE_APP_DIR"