mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
fix: remove standalone tsc step — next build handles type checking
The standalone `npx tsc --noEmit` can't resolve @/ path aliases for generated Prisma client files on CI, even with baseUrl set. next build already runs TypeScript type checking and ESLint via its own bundler which handles path aliases correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -42,20 +42,12 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Generate Prisma client
|
- name: Generate Prisma client
|
||||||
run: |
|
run: npx prisma generate
|
||||||
npx prisma generate
|
|
||||||
echo "--- Checking generated output ---"
|
|
||||||
ls -la src/generated/prisma/ || echo "ERROR: src/generated/prisma/ does not exist!"
|
|
||||||
echo "--- Checking node_modules/.prisma ---"
|
|
||||||
ls -la node_modules/.prisma/client/ 2>/dev/null || echo "No .prisma/client in node_modules"
|
|
||||||
|
|
||||||
- name: Run database migrations
|
- name: Run database migrations
|
||||||
run: npx prisma migrate deploy
|
run: npx prisma migrate deploy
|
||||||
|
|
||||||
- name: Type check
|
- name: Build (includes type check and lint)
|
||||||
run: npx tsc --noEmit
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: npm run build
|
run: npm run build
|
||||||
env:
|
env:
|
||||||
AUTH_SECRET: ci-test-secret-not-for-production
|
AUTH_SECRET: ci-test-secret-not-for-production
|
||||||
|
|||||||
Reference in New Issue
Block a user