Skip to content

Commit

Permalink
git:add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nsavinda committed Jan 3, 2024
1 parent 466a39a commit 8e55cfa
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/frontend_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build React App

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '20'

- name: Install pnpm
run: npm install -g pnpm

- name: Install frontend dependencies with pnpm
run: |
cd frontend
pnpm install
- name: Build frontend with pnpm
run: |
cd frontend
pnpm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: frontend/build
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8e55cfa

Please sign in to comment.