From 0ae0a4536f866bf5229b7d9a83485658e2f50b5d Mon Sep 17 00:00:00 2001 From: Matt Isenhower Date: Sat, 16 Mar 2024 21:13:27 -0700 Subject: [PATCH] Add action for building the frontend --- .github/workflows/build-frontend.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build-frontend.yml diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml new file mode 100644 index 0000000..7487988 --- /dev/null +++ b/.github/workflows/build-frontend.yml @@ -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