Merge pull request #72 from misenhower/build-frontend-action

Add action for building the frontend
This commit is contained in:
Matt Isenhower
2024-03-16 21:15:51 -07:00
committed by GitHub

27
.github/workflows/build-frontend.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Build frontend
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build