fix(ci): build shared packages before OpenAPI generation

The server depends on @bigcapital/email-components and other shared
packages. Build them before running openapi:export to fix module
resolution errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ahmed Bouhuolia
2026-03-15 21:19:03 +02:00
parent 5c32f41f22
commit 2358ef9097

View File

@@ -43,6 +43,9 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build shared packages
run: pnpm run build --scope "@bigcapital/utils" --scope "@bigcapital/email-components" --scope "@bigcapital/pdf-templates"
- name: Generate OpenAPI spec and SDK types
run: pnpm run generate:sdk-types