47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: Production Build
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: build-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 25
|
|
env:
|
|
AUTH_SECRET: ci-build-placeholder-secret
|
|
AUTH_URL: http://localhost:3000
|
|
NEXTAUTH_URL: http://localhost:3000
|
|
NEXT_PUBLIC_APP_URL: http://localhost:3000
|
|
POSTGRES_URL: postgres://user:password@localhost:5432/yedir_ai
|
|
DISABLE_PERF_GUARD_AUTO_INSTALL: "1"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9.12.3
|
|
run_install: false
|
|
|
|
- name: Use Node.js 20
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run production build
|
|
run: pnpm build
|