diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..3c3bb9ab --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,29 @@ +name: Check Next.js Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + name: Build Next.js App + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' # or match the version in .nvmrc or package.json + + - name: Install dependencies + run: npm ci + + - name: Build the app + run: npm run build