feat: add frontend workflow #1
Workflow file for this run
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: 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 |