drive-gooder frontend build Harrolee #3
This file contains 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 FE | |
run-name: drive-gooder frontend build ${{ github.actor }} | |
on: | |
push: | |
branches: ["prod"] | |
paths: | |
- "web/**" | |
pull_request: | |
branches: ["prod"] | |
paths: | |
- "web/**" | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
build-deploy: | |
name: Build Frontend | |
runs-on: ubuntu-latest | |
environment: prod | |
steps: | |
- name: Build FE | |
run: | | |
pwd | |
ls | |
cd web | |
npm i | |
react-scripts build | |
# FE build will be in build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: frontend-build | |
path: web/build |