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:
parent
48b5e2b46d
commit
6e9519ff23
2 changed files with 8 additions and 0 deletions
4
.github/workflows/deploy_cfapi_to_azure.yml
vendored
4
.github/workflows/deploy_cfapi_to_azure.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue