trying out nextjs-build
This commit is contained in:
parent
fde678fba9
commit
89486ef58f
1 changed files with 37 additions and 0 deletions
37
.github/workflows/nextjs-build.yaml
vendored
Normal file
37
.github/workflows/nextjs-build.yaml
vendored
Normal 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
|
||||
Loading…
Reference in a new issue