name: Build on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: linux_amd64 steps: - name: Checkout code uses: actions/checkout@v4 - name: Install dependencies run: npm ci - name: Build Front End run: npm run build env: NODE_OPTIONS: '--max-old-space-size=4096' - name: Restart Server run: | # Kill existing process on port 3001 lsof -ti:3001 | xargs kill -9 2>/dev/null || true # Start server in background with nohup nohup npm run start > /tmp/immersive.log 2>&1 &