From 0171f9a7f725f4a081c05a05afcc02124dd471f7 Mon Sep 17 00:00:00 2001 From: Ben Siggery Date: Fri, 22 Mar 2024 14:29:00 +0000 Subject: [PATCH] chore(pie-monorepo): DSW-000 add changeset --- .changeset/slow-bobcats-hang.md | 10 ++++++++++ .github/workflows/changeset-release.yml | 18 +++++++++--------- 2 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 .changeset/slow-bobcats-hang.md diff --git a/.changeset/slow-bobcats-hang.md b/.changeset/slow-bobcats-hang.md new file mode 100644 index 0000000000..1aba92c7a3 --- /dev/null +++ b/.changeset/slow-bobcats-hang.md @@ -0,0 +1,10 @@ +--- +"@justeattakeaway/pie-chip": minor +"@justeattakeaway/pie-form-label": minor +"@justeattakeaway/pie-input": minor +"@justeattakeaway/pie-modal": minor +"@justeattakeaway/pie-notification": minor +"@justeattakeaway/pie-switch": minor +--- + +[Added] - Changeset to correct tagging diff --git a/.github/workflows/changeset-release.yml b/.github/workflows/changeset-release.yml index 38fce168c8..2fd082d1a9 100644 --- a/.github/workflows/changeset-release.yml +++ b/.github/workflows/changeset-release.yml @@ -24,7 +24,7 @@ jobs: changesets: runs-on: ${{ inputs.os }} if: github.repository == 'justeattakeaway/pie' && ${{ github.event_name != 'pull_request' }} && - (contains(github.ref_name, 'main') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'feature')) + (contains(github.ref_name, 'main') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha')) steps: # Checkout the Repo - name: Checkout @@ -46,7 +46,7 @@ jobs: # Build Packages - name: Build if: ${{ github.event_name != 'pull_request' }} && - (contains(github.ref_name, 'main') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'feature')) + (contains(github.ref_name, 'main') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha')) uses: ./.github/actions/run-script with: script-name: "build" @@ -83,19 +83,19 @@ jobs: version: yarn changeset:version publish: yarn changeset:publish commit: "release: release packages with 'beta' tag" - - name: Enter feature prerelease mode - id: changesets-feature - if: steps.check_files.outputs.files_exists == 'false' && contains(github.ref_name, 'feature') + - name: Enter alpha prerelease mode + id: changesets-alpha + if: steps.check_files.outputs.files_exists == 'false' && contains(github.ref_name, 'alpha') # If .changeset/pre.json does not exist and we did not recently exit # prerelease mode, enter prerelease mode with tag next - run: npx changeset pre enter next - - name: Create feature release PR - if: contains(github.ref_name, 'feature') + run: npx changeset pre enter alpha + - name: Create alpha release PR + if: contains(github.ref_name, 'alpha') uses: changesets/action@v1 with: version: yarn changeset:version publish: yarn changeset:publish - commit: "release: release packages with 'next' tag" + commit: "release: release packages with 'alpha' tag" # This script performs the following logic: