An NX/Angular project has a PR that passes build validation but it should not.
The command is running in Github workflow:
pnpm run nx affected --target=build --base=${{ env.NX_BASE }} --parallel=0 --maxParallel=1
Outputs: > NX Successfully ran target build for 43 projects
But locally the same fails and returns:
> NX Ran target build for 43 projects
I'd expect the pipeline fail for this PR as Angular does not support TypeScript 5.2.2
What could be the root cause and how to make NX build to properly fail as expected?