Skip to content

Commit

Permalink
feat: add frontend workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao committed Nov 6, 2024
1 parent a3e9550 commit b0f2925
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build

on:
push:
branches:
- main
paths:
- "frontend/**" # Only trigger on changes within this folder
paths-ignore:
- "**.md"
pull_request:
paths:
- "frontend/**" # Only trigger on changes within this folder
paths-ignore:
- "**.md"
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-latest
name: Build specific package and run tests
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18"

- name: Enable Corepack
run: corepack enable

- name: Set Yarn version to Berry
run: corepack prepare [email protected] --activate

- name: Install dependencies
run: yarn install --cwd frontend

- name: Build specific package 🔧
run: yarn build --cwd frontend

0 comments on commit b0f2925

Please sign in to comment.