Use Bun filter to skip desktop workspace in deploy job
This commit is contained in:
parent
4ec5f15c9d
commit
8031c9c29d
1 changed files with 1 additions and 11 deletions
12
.github/workflows/ci-cd-web-desktop.yml
vendored
12
.github/workflows/ci-cd-web-desktop.yml
vendored
|
|
@ -173,16 +173,6 @@ jobs:
|
||||||
cd "$EFFECTIVE_APP_DIR"
|
cd "$EFFECTIVE_APP_DIR"
|
||||||
# Keep only root (web) as a package in this effective workspace
|
# 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
|
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
|
- name: Ensure Next.js cache directory exists and is writable
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -201,7 +191,7 @@ JSON
|
||||||
- name: Install and build (Next.js)
|
- name: Install and build (Next.js)
|
||||||
run: |
|
run: |
|
||||||
cd "$EFFECTIVE_APP_DIR"
|
cd "$EFFECTIVE_APP_DIR"
|
||||||
bun install --frozen-lockfile
|
bun install --frozen-lockfile --filter '!appsdesktop'
|
||||||
bun run prisma:generate
|
bun run prisma:generate
|
||||||
bun run build:bun
|
bun run build:bun
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue