-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
25 deletions.
There are no files selected for viewing
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
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 |