-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (35 loc) · 978 Bytes
/
frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This workflow will build the frontend with node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Build frontend
on:
push:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- 'frontend/**'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- 'frontend/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4 # see https://github.com/actions/setup-node
with:
node-version: '21.x'
cache: 'npm'
cache-dependency-path: "frontend"
- name: Clean install
working-directory: frontend
run: npm ci
- name: Lint
working-directory: frontend
run: npm run lint
- name: Build
working-directory: frontend
run: npm run build