Skip to content

Commit

Permalink
fix: frontend build action
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtrazy committed Jul 18, 2024
1 parent 509a791 commit 6d08302
Showing 1 changed file with 14 additions and 25 deletions.
39 changes: 14 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,23 @@
name: Vite Build
name: La Fresca Frontend Build

on:
push:
branches: [ "main" ]
branches: ['main']
pull_request:
branches: [ "main" ]
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

timeout-minutes: 5
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
- name: print out example job
uses: appleboy/[email protected]
with:
host: ${{ inputs.hostname }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
command_timeout: 30m
script: |
./lafresca-frontend-action.sh

0 comments on commit 6d08302

Please sign in to comment.