Bump js-yaml in /frontend #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |