Use Bun filter to skip desktop workspace in deploy job

This commit is contained in:
Esdras Renan 2025-11-04 23:37:33 -03:00
parent 4ec5f15c9d
commit 8031c9c29d

View file

@ -173,16 +173,6 @@ jobs:
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
mkdir -p apps/desktop
cat <<'JSON' > apps/desktop/package.json
{
"name": "appsdesktop",
"private": true,
"version": "0.0.0"
}
JSON
- name: Ensure Next.js cache directory exists and is writable
run: |
@ -201,7 +191,7 @@ JSON
- name: Install and build (Next.js)
run: |
cd "$EFFECTIVE_APP_DIR"
bun install --frozen-lockfile
bun install --frozen-lockfile --filter '!appsdesktop'
bun run prisma:generate
bun run build:bun