chore(workflow): handle graduate fallback release

This commit is contained in:
Mo
2022-06-16 14:34:44 -05:00
parent 4c50162546
commit ec5e5ac103
2 changed files with 11 additions and 3 deletions

View File

@@ -49,9 +49,16 @@ jobs:
git add .
(git commit -m 'chore(release): components') || true
- name: Bump Prod Version
- name: Bump Prod Version Graduate
id: graduateRelease
if: ${{ github.ref == 'refs/heads/main' }}
run: yarn release:prod
run: yarn release:prod:graduate
- name: Bump Prod Version Fallback
if: ${{ always() && github.ref == 'refs/heads/main' && steps.graduateRelease.outcome == 'failure' }}
run: |
echo Falling back to non-graduate release due to https://github.com/lerna/lerna/issues/2532
yarn release:prod
- name: Bump Beta Version
if: ${{ github.ref == 'refs/heads/develop' }}
run: yarn release:beta