Skip to content

fix: handle list

fix: handle list #26

# For main branch only
name: Build Frontend and Push
on:
push:
branches:
- main
paths:
- "frontend/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
node-version: "20.x"
- name: Install dependencies
run: yarn install
working-directory: frontend
- name: Build frontend
run: yarn funix:build
working-directory: frontend
- name: Set git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Push to main branch
run: |
git add -f backend/funix/build
git commit -m "chore: auto build frontend"
git push origin HEAD:main