Skip to content

feat: add frontend workflow #1

feat: add frontend workflow

feat: add frontend workflow #1

Workflow file for this run

name: Build

Check failure on line 1 in .github/workflows/frontend-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/frontend-build.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
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