Merge pull request #901 from shauneccles:release/2.0.97 #2
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 Frontend | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'frontend/**' | |
- '.github/workflows/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'frontend/**' | |
- '.github/workflows/**' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install pnpm packages | |
run: | | |
cd frontend | |
pnpm install | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }} | |
- name: Build project | |
run: | | |
cd frontend | |
pnpm build |