feat: public releases package
This commit is contained in:
11
.github/workflows/version-bump.yml
vendored
11
.github/workflows/version-bump.yml
vendored
@@ -8,6 +8,8 @@ jobs:
|
||||
Build:
|
||||
if: contains(github.event.head_commit.message, 'chore(release)') == false
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
@@ -36,7 +38,9 @@ jobs:
|
||||
continue-on-error: true
|
||||
id: graduateRelease
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
run: yarn release:prod:graduate
|
||||
run: |
|
||||
yarn release:prod:graduate
|
||||
yarn publish:prod
|
||||
|
||||
- name: Bump Prod Version Fallback
|
||||
if: ${{ always() && github.ref == 'refs/heads/main' && steps.graduateRelease.outcome == 'failure' }}
|
||||
@@ -44,7 +48,10 @@ jobs:
|
||||
echo Falling back to non-graduate release due to https://github.com/lerna/lerna/issues/2532
|
||||
git stash
|
||||
yarn release:prod
|
||||
yarn publish:prod
|
||||
|
||||
- name: Bump Beta Version
|
||||
if: ${{ github.ref == 'refs/heads/develop' }}
|
||||
run: yarn release:beta
|
||||
run: |
|
||||
yarn release:beta
|
||||
yarn publish:beta
|
||||
|
||||
Reference in New Issue
Block a user