Update CI and test workflows to build shared package and generate Prisma client

- Added steps to build the shared package and generate the Prisma client in both CI and test workflows.
- Removed redundant build step for the shared package in the CI workflow.
This commit is contained in:
T. Narantuya 2025-08-29 14:19:39 +09:00
parent ca68cabe76
commit 1762d67e3f
2 changed files with 12 additions and 3 deletions

View File

@ -27,15 +27,18 @@ jobs:
- name: Install deps - name: Install deps
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
- name: Build Shared (needed for type refs)
run: pnpm --filter @customer-portal/shared run build
- name: Generate Prisma client
run: pnpm --filter @customer-portal/bff run db:generate
- name: Type check (workspace) - name: Type check (workspace)
run: pnpm --recursive run type-check run: pnpm --recursive run type-check
- name: Lint (workspace) - name: Lint (workspace)
run: pnpm --recursive run lint run: pnpm --recursive run lint
- name: Build Shared
run: pnpm --filter @customer-portal/shared run build
- name: Build BFF - name: Build BFF
run: pnpm --filter @customer-portal/bff run build run: pnpm --filter @customer-portal/bff run build

View File

@ -64,6 +64,12 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
- name: Build shared package (needed for type refs)
run: pnpm --filter @customer-portal/shared run build
- name: Generate Prisma client
run: pnpm --filter @customer-portal/bff run db:generate
- name: Type check - name: Type check
run: pnpm type-check run: pnpm type-check