diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index afca4523..983f558b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,6 +32,10 @@ jobs: - name: Install Dependencies if: steps.version_check.outputs.changed == 'true' run: pnpm install --frozen-lockfile + + - name: Cleanup old /latest folder + if: steps.version_check.outputs.changed == 'true' + run: rm -rf latest/* - name: Build and Move Files if: steps.version_check.outputs.changed == 'true' @@ -61,10 +65,6 @@ jobs: git fetch origin dist git checkout -b dist origin/dist - - name: Cleanup old /latest folder - if: steps.version_check.outputs.changed == 'true' - run: rm -rf latest/* - - name: Commit and Push Changes if: steps.version_check.outputs.changed == 'true' run: | diff --git a/.github/workflows/update-next.yml b/.github/workflows/update-next.yml index 69617d7f..16e6dc1d 100644 --- a/.github/workflows/update-next.yml +++ b/.github/workflows/update-next.yml @@ -29,6 +29,9 @@ jobs: - name: Install Dependencies run: pnpm install --frozen-lockfile + - name: Cleanup old /@next folder + run: rm -rf @next/* + - name: Build JSON schema files run: pnpm build @@ -51,7 +54,7 @@ jobs: - name: Checkout Dist Branch run: | git fetch origin dist - git checkout -b dist origin/dist + git checkout -f dist - name: Commit and Push Changes run: | diff --git a/examples/application/data/planningPermission/fullHouseholderInConservationArea.ts b/examples/application/data/planningPermission/fullHouseholderInConservationArea.ts index b022088a..0dae1104 100644 --- a/examples/application/data/planningPermission/fullHouseholderInConservationArea.ts +++ b/examples/application/data/planningPermission/fullHouseholderInConservationArea.ts @@ -1,4 +1,4 @@ -import { Application } from "../../../../types/schemas/application"; +import {Application} from '../../../../types/schemas/application'; const version = process.env['VERSION'] || '@next';