All checks were successful
Build Frontend / Build Frontend (push) Successful in 17s
45 lines
961 B
YAML
45 lines
961 B
YAML
name: Build Frontend
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Frontend
|
|
runs-on: Turbo-Dev
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24"
|
|
|
|
- name: Install Backend Dependencies
|
|
run: npm install --production
|
|
|
|
- name: Install Frontend Dependencies
|
|
run: |
|
|
cd frontend
|
|
npm install
|
|
|
|
- name: Build Frontend
|
|
run: |
|
|
cd frontend
|
|
npm run build
|
|
env:
|
|
NODE_ENV: production
|
|
VITE_API_URL: https://api.turbotrades.dev
|
|
VITE_WS_URL: https://ws.turbotrades.dev
|
|
|
|
- name: Success
|
|
run: |
|
|
echo "✅ Build complete!"
|
|
echo "📦 Backend dependencies installed"
|
|
echo "🎨 Frontend built: frontend/dist/"
|
|
echo "🚀 Ready for manual deployment"
|