27 lines
492 B
YAML
27 lines
492 B
YAML
|
|
on:
|
||
|
|
push:
|
||
|
|
branches:
|
||
|
|
- main
|
||
|
|
jobs:
|
||
|
|
build:
|
||
|
|
runs-on: ubuntu-latest
|
||
|
|
env:
|
||
|
|
NODE_ENV: production
|
||
|
|
container:
|
||
|
|
image: node:16-bullseye
|
||
|
|
steps:
|
||
|
|
- name: Checkout code
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
|
||
|
|
- name: Build Frontend
|
||
|
|
working-directory: frontend
|
||
|
|
run: |
|
||
|
|
npm install
|
||
|
|
npm run build
|
||
|
|
|
||
|
|
- name: Build Backend
|
||
|
|
working-directory: backend
|
||
|
|
run: |
|
||
|
|
npm install
|
||
|
|
npm run production
|