diff --git a/.github/workflows/create-data-model-pr.yaml b/.github/workflows/create-data-model-pr.yaml index 3df06ae2..f641d382 100644 --- a/.github/workflows/create-data-model-pr.yaml +++ b/.github/workflows/create-data-model-pr.yaml @@ -67,6 +67,12 @@ jobs: run: npm install working-directory: ./models-ts/ + # tsc never deletes output, so compiled files for removed models would otherwise stay in lib/. + # This only affects the runner's copy: if the build or tests fail, no pull request is created. + - name: Remove previous build + run: rm -rf lib + working-directory: ./models-ts/ + - name: Build models-ts types run: npm run build working-directory: ./models-ts/