fix(ci): add build step for platform packages in API v2 breaking changes check #26948
+10
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes the "Check API v2 breaking changes" CI workflow which was failing with TypeScript errors like
Cannot find module '@calcom/platform-libraries/pbac'.The workflow was missing a build step for platform packages before running
yarn generate-swagger. The swagger generation needs to compile TypeScript, but the platform packages'dist/folders didn't exist yet, causing module resolution failures.This adds the same build step used in
e2e-api-v2.ymlandapi-v2-unit-tests.ymlworkflows.Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
This will be verified when CI runs on any PR that touches API v2 files (which triggers the "Check API v2 breaking changes" workflow). The workflow should now pass instead of failing with TypeScript module resolution errors.
Checklist
Human Review Checklist
e2e-api-v2.yml,api-v2-unit-tests.yml)Link to Devin run: https://app.devin.ai/sessions/f7c710a65b90495a89c321afb8dc2f65
Requested by: Rajiv (@Ryukemeister)