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

View File

@@ -26,7 +26,8 @@
"start:server:web:localhost": "lerna run start:no-binding --scope=@standardnotes/web-server",
"prepare": "husky install",
"reset": "find . -type dir -name node_modules | xargs rm -rf && rm -rf yarn.lock && yarn install",
"release:prod": "lerna version --conventional-graduate --conventional-commits --yes -m \"chore(release): publish\"",
"release:prod": "lerna version --conventional-commits --yes -m \"chore(release): publish\"",
"release:prod:graduate": "lerna version --conventional-graduate --conventional-commits --yes -m \"chore(release): publish\"",
"release:beta": "lerna version --conventional-prerelease --conventional-commits --yes -m \"chore(release): publish\"",
"version": "yarn install --no-immutable && git add yarn.lock",
"postversion": "./scripts/push-tags-one-by-one.sh",