Merge branch 'foodlist' #11
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: Vite Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Set up Node.js environment | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' # Using LTS version of Node.js | |
# Install pnpm package manager | |
- name: Install pnpm | |
run: npm install -g pnpm | |
# Install dependencies using pnpm | |
- name: Install frontend dependencies | |
run: pnpm install --no-frozen-lockfile | |
# Build the project using pnpm | |
- name: Build frontend | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
run: pnpm build |