-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 932 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Frontend Build
on:
push:
branches:
- main # Adjust this branch name to your needs
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18 # Adjust the Node.js version as needed
- name: Install Dependencies
working-directory: src-frontend-react
run: npm install
- name: Install Prisma Client
run: npx prisma generate
- name: Build Frontend
working-directory: src-frontend-react
run: npm run build
- name: Commit and Push Build Files
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add src-frontend-react/build
git commit -m "Add frontend build files"
git push