trying out nextjs-build

This commit is contained in:
Alvin Ryanputra 2024-11-19 15:55:34 -05:00
parent fde678fba9
commit 89486ef58f

37
.github/workflows/nextjs-build.yaml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Next.js Build Check
on:
push:
paths:
- 'js/cf-webapp'
branches:
- main
pull_request:
paths:
- 'js/cf-webapp'
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./js/cf-webapp
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: './js/cf-webapp/package-lock.json'
- name: Install dependencies
run: npm ci
- name: Build Next.js app
run: npm run build