fix: build common package before app in deploy workflows

Both deploy workflows (cf-webapp and cf-api) fail with
"Can't resolve '@codeflash-ai/common'" because the workspace
dependency isn't built before the app build. Same fix already
applied to the CI quality-gate workflows.
This commit is contained in:
Kevin Turcios 2026-04-13 11:53:01 -05:00
parent 48b5e2b46d
commit 6e9519ff23
2 changed files with 8 additions and 0 deletions

View file

@ -38,6 +38,10 @@ jobs:
working-directory: js
run: pnpm install --frozen-lockfile
- name: Build common package
working-directory: js
run: pnpm --filter @codeflash-ai/common build
- name: Build and package app
run: |
cd js/cf-api

View file

@ -56,6 +56,10 @@ jobs:
nextjs-${{ runner.os }}-${{ hashFiles('js/pnpm-lock.yaml') }}-
nextjs-${{ runner.os }}-
- name: Build common package
working-directory: js
run: pnpm --filter @codeflash-ai/common build
- name: Build and package app
working-directory: js
run: |