From 57d8a25551565dd80c1bc3d17aebc07613d549bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 25 Jul 2024 20:59:54 +0100 Subject: [PATCH] fix: Update @next GitHub action --- .github/workflows/publish.yml | 8 ++++---- .github/workflows/update-next.yml | 5 ++++- .../fullHouseholderInConservationArea.ts | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) 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';