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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user