From a05831aaa2d1e1baaad9d3644fd85cca0b4cf6c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Tue, 19 Sep 2023 18:35:25 +0100 Subject: [PATCH] fix: Publish action --- .github/workflows/publish.yml | 14 ++++++++------ package.json | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 009afe5f..abd72d89 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,18 +33,20 @@ jobs: if: steps.version_check.outputs.changed == 'true' run: pnpm install - - name: Checkout Dist Branch - if: steps.version_check.outputs.changed == 'true' - run: | - git fetch origin dist - git checkout -b dist origin/dist - - name: Build and Move Files if: steps.version_check.outputs.changed == 'true' run: | VERSION=v${{steps.version_check.outputs.version}} pnpm build mkdir -p "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}" mv schema/* "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}" + mv types/* "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/types" + mv examples/*.json "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/examples" + + - name: Checkout Dist Branch + if: steps.version_check.outputs.changed == 'true' + run: | + git fetch origin dist + git checkout -b dist origin/dist - name: Commit and Push Changes if: steps.version_check.outputs.changed == 'true' diff --git a/package.json b/package.json index fcd9a17a..53e0a646 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "digital-planning-data-schemas", - "version": "0.0.1", + "version": "0.0.2", "description": "Digital Planning Schemas", "main": "schema/schema.json", "scripts": {