This commit is contained in:
@ -1,5 +1,4 @@
|
||||
name: Build frontend
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@ -8,25 +7,23 @@ branches:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: Rahaf/SweetHome
|
||||
github-server-url: http://45.93.137.91:3000
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Install dependencies (ignore peer conflicts)
|
||||
- name: Use Node.js 22.13.1
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 24.x
|
||||
- name: Install dependencies
|
||||
run: npm install --legacy-peer-deps
|
||||
|
||||
- name: Generate build
|
||||
run: npm run build
|
||||
|
||||
- name: Copy to Nginx root
|
||||
run: |
|
||||
sudo rm -rf /var/www/html/*
|
||||
|
||||
Reference in New Issue
Block a user