ci: fix frontend build outside pnpm workspace
Deploy to VPS / deploy (push) Failing after 1m47s
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:
@@ -55,7 +55,10 @@ jobs:
|
|||||||
run: pnpm run build:discord-gateway
|
run: pnpm run build:discord-gateway
|
||||||
|
|
||||||
- name: Build frontend
|
- 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
|
- name: Prepare production environment file
|
||||||
env:
|
env:
|
||||||
|
|||||||
+3
-3
@@ -7,9 +7,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev:backend": "pnpm --filter './services/backend' run dev",
|
"dev:backend": "pnpm --filter './services/backend' run dev",
|
||||||
"dev:discord-gateway": "pnpm --filter './services/discord-gateway' run dev",
|
"dev:discord-gateway": "pnpm --filter './services/discord-gateway' run dev",
|
||||||
"dev:web": "pnpm --filter './services/frontend' run dev",
|
"dev:web": "cd services/frontend && pnpm run dev",
|
||||||
"build:web": "pnpm --filter './services/frontend' run build",
|
"build:web": "cd services/frontend && pnpm run build",
|
||||||
"typecheck:web": "cd services/frontend && bun run build",
|
"typecheck:web": "cd services/frontend && pnpm run build",
|
||||||
"build:backend": "pnpm --filter './services/backend' run build",
|
"build:backend": "pnpm --filter './services/backend' run build",
|
||||||
"build:discord-gateway": "pnpm --filter './services/discord-gateway' run build",
|
"build:discord-gateway": "pnpm --filter './services/discord-gateway' run build",
|
||||||
"typecheck": "pnpm -r run typecheck",
|
"typecheck": "pnpm -r run typecheck",
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user