chore(workflow): handle graduate fallback release
This commit is contained in:
11
.github/workflows/version-bump.yml
vendored
11
.github/workflows/version-bump.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user