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 run: pnpm install --frozen-lockfile
- name: Build application - name: Build application
run: pnpm build run: pnpm build:ci
env: env:
# Provide minimal env vars for build (no actual secrets needed for build check) # Provide minimal env vars for build (no actual secrets needed for build check)
POSTGRES_URL: "postgresql://user:pass@localhost:5432/db" POSTGRES_URL: "postgresql://user:pass@localhost:5432/db"
BETTER_AUTH_SECRET: "build-check-secret-32-characters!" BETTER_AUTH_SECRET: "build-check-secret-32-characters!"
NEXT_PUBLIC_APP_URL: "http://localhost:3000" 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 ```bash
npm run dev # Start dev server (DON'T run this yourself - ask user) 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 # 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 start # Start production server
npm run lint # Run ESLint (ALWAYS run after changes) npm run lint # Run ESLint (ALWAYS run after changes)
npm run typecheck # TypeScript type checking (ALWAYS run after changes) npm run typecheck # TypeScript type checking (ALWAYS run after changes)

View File

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

View File

@@ -1,6 +1,6 @@
{ {
"name": "create-agentic-app", "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", "description": "Scaffold a new agentic AI application with Next.js, Better Auth, and AI SDK",
"type": "module", "type": "module",
"bin": { "bin": {

View File

@@ -103,6 +103,7 @@ BLOB_READ_WRITE_TOKEN= # Leave empty for local dev, set for Vercel Blob in prod
```bash ```bash
npm run dev # Start dev server (DON'T run this yourself - ask user) 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 # 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 start # Start production server
npm run lint # Run ESLint (ALWAYS run after changes) npm run lint # Run ESLint (ALWAYS run after changes)
npm run typecheck # TypeScript type checking (ALWAYS run after changes) npm run typecheck # TypeScript type checking (ALWAYS run after changes)

View File

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

View File

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