ci: fix frontend build outside pnpm workspace
Deploy to VPS / deploy (push) Failing after 1m47s

Frontend not in pnpm workspace (uses bun.lock locally), so build it
directly with pnpm install + build in its own directory.
This commit is contained in:
asepharyana
2026-07-26 13:03:49 +07:00
parent cedce85087
commit d5253ebab0
3 changed files with 7 additions and 885 deletions
+4 -1
View File
@@ -55,7 +55,10 @@ jobs:
run: pnpm run build:discord-gateway
- name: Build frontend
run: pnpm run build:web
run: |
pnpm install --no-frozen-lockfile
pnpm run build
working-directory: services/frontend
- name: Prepare production environment file
env:
+3 -3
View File
@@ -7,9 +7,9 @@
"scripts": {
"dev:backend": "pnpm --filter './services/backend' run dev",
"dev:discord-gateway": "pnpm --filter './services/discord-gateway' run dev",
"dev:web": "pnpm --filter './services/frontend' run dev",
"build:web": "pnpm --filter './services/frontend' run build",
"typecheck:web": "cd services/frontend && bun run build",
"dev:web": "cd services/frontend && pnpm run dev",
"build:web": "cd services/frontend && pnpm run build",
"typecheck:web": "cd services/frontend && pnpm run build",
"build:backend": "pnpm --filter './services/backend' run build",
"build:discord-gateway": "pnpm --filter './services/discord-gateway' run build",
"typecheck": "pnpm -r run typecheck",
File diff suppressed because one or more lines are too long