remove the database migration script from GH CICD pipeline

This commit is contained in:
Leon van Zyl
2025-11-30 18:07:31 +02:00
parent 3c3936a6dc
commit adb574e334
7 changed files with 8 additions and 6 deletions

View File

@@ -78,11 +78,9 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build application
run: pnpm build
run: pnpm build:ci
env:
# Provide minimal env vars for build (no actual secrets needed for build check)
POSTGRES_URL: "postgresql://user:pass@localhost:5432/db"
BETTER_AUTH_SECRET: "build-check-secret-32-characters!"
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
# Skip database migration during CI build
SKIP_ENV_VALIDATION: "true"

View File

@@ -103,6 +103,7 @@ BLOB_READ_WRITE_TOKEN= # Leave empty for local dev, set for Vercel Blob in prod
```bash
npm run dev # Start dev server (DON'T run this yourself - ask user)
npm run build # Build for production (runs db:migrate first)
npm run build:ci # Build without database (for CI/CD pipelines)
npm run start # Start production server
npm run lint # Run ESLint (ALWAYS run after changes)
npm run typecheck # TypeScript type checking (ALWAYS run after changes)

View File

@@ -1,12 +1,12 @@
{
"name": "create-agentic-app",
"version": "1.1.22",
"version": "1.1.23",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "create-agentic-app",
"version": "1.1.22",
"version": "1.1.23",
"license": "MIT",
"dependencies": {
"chalk": "^5.3.0",

View File

@@ -1,6 +1,6 @@
{
"name": "create-agentic-app",
"version": "1.1.22",
"version": "1.1.23",
"description": "Scaffold a new agentic AI application with Next.js, Better Auth, and AI SDK",
"type": "module",
"bin": {

View File

@@ -103,6 +103,7 @@ BLOB_READ_WRITE_TOKEN= # Leave empty for local dev, set for Vercel Blob in prod
```bash
npm run dev # Start dev server (DON'T run this yourself - ask user)
npm run build # Build for production (runs db:migrate first)
npm run build:ci # Build without database (for CI/CD pipelines)
npm run start # Start production server
npm run lint # Run ESLint (ALWAYS run after changes)
npm run typecheck # TypeScript type checking (ALWAYS run after changes)

View File

@@ -4,6 +4,7 @@
"scripts": {
"dev": "next dev --turbopack",
"build": "pnpm run db:migrate && next build",
"build:ci": "next build",
"start": "next start",
"lint": "eslint .",
"typecheck": "tsc --noEmit",

View File

@@ -4,6 +4,7 @@
"scripts": {
"dev": "next dev --turbopack",
"build": "pnpm run db:migrate && next build",
"build:ci": "next build",
"start": "next start",
"lint": "eslint .",
"typecheck": "tsc --noEmit",