diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 33ce339d..fe9ff6dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,6 +46,7 @@ jobs: name: backend path: | ./backend/target/billtracker-backend-1.0.0.jar + build_frontend: runs-on: ubuntu-24.04 permissions: @@ -59,6 +60,14 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Cache npm dependencies + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install NPM Packages run: npm i @@ -67,4 +76,10 @@ jobs: with: working_directory: ./frontend production: npm run build -- --mode=production - develop: npm run build -- --mode=develop \ No newline at end of file + develop: npm run build -- --mode=develop + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: frontend + path: build \ No newline at end of file