Merge pull request #168 from CS3219-AY2324S1/sltsheryl-patch-2 #240
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: Deploy frontend | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
REACT_APP_BACKEND_URL: ${{ secrets.REACT_APP_BACKEND_URL }} | |
REACT_APP_USER_SERVICE_BACKEND_URL: ${{ secrets.REACT_APP_USER_SERVICE_BACKEND_URL }} | |
REACT_APP_COLLABORATION_SERVICE_BACKEND_URL: ${{ secrets.REACT_APP_COLLABORATION_SERVICE_BACKEND_URL }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Dependencies and Build | |
run: | | |
cd frontend | |
export NODE_OPTIONS="--max_old_space_size=4096" | |
npm ci | |
npm run build |