Skip to content

Bump js-yaml in /frontend #44

Bump js-yaml in /frontend

Bump js-yaml in /frontend #44

Workflow file for this run

name: Build frontend
on:
push:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- run: npm ci
- name: Build with custom path
env:
BUILD_PATH: ../backend/build
REACT_APP_BACKEND_URL: ${{ secrets.REACT_APP_BACKEND_URL }}
CI: false
run: npm run build
- name: Commit frontend build into backend
if: success()
working-directory: .
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add backend/build
git commit -m "CI: update frontend build [skip ci]" || echo "Nothing to commit"
git push