Skip to content

Commit

Permalink
Merge pull request #4 from siggerzz/dsw-000-alpha-tagging-test
Browse files Browse the repository at this point in the history
chore(pie-monorepo): DSW-000 add changeset
  • Loading branch information
siggerzz authored Mar 22, 2024
2 parents 5d2a28a + 0171f9a commit db6e366
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .changeset/slow-bobcats-hang.md
Original file line number Diff line number Diff line change
@@ -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
18 changes: 9 additions & 9 deletions .github/workflows/changeset-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit db6e366

Please sign in to comment.