File tree Expand file tree Collapse file tree 2 files changed +26
-4
lines changed
Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ - develop
78
89jobs :
910 lint-test-build :
@@ -12,14 +13,11 @@ jobs:
1213 publish :
1314 needs : [lint-test-build]
1415 runs-on : ubuntu-latest
15- outputs :
16- postfix : ${{ env.postfix }}
17- gitsha : ${{ steps.gitsha.outputs.value }}
1816
1917 steps :
2018 # # Setup Auth token to push to github packages
2119 - name : Set NPM Config
22- run : npm config set '//npm.pkg.github.com/:_authToken' ' ${{ secrets.ACCESS_TOKEN }}'
20+ run : npm config set '//npm.pkg.github.com/:_authToken= ${{ secrets.ACCESS_TOKEN }}'
2321
2422 - name : Add safe directory
2523 run : git config --global --add safe.directory /__w/sage-lib/sage-lib
5957 - name : Lerna Boostrap
6058 run : yarn lerna bootstrap --ci
6159
60+ - name : Set PreId
61+ id : set_preid
62+ run : |
63+ if [ "${{ github.ref }}" == "refs/heads/develop" ]; then
64+ echo "preid='rc'" >> $GITHUB_OUTPUT
65+ else
66+ echo "preid=''" >> $GITHUB_OUTPUT
67+ fi
68+
69+ - name : Lerna Version Develop
70+ if : github.ref == 'refs/heads/develop'
71+ run : NODE_OPTIONS=--openssl-legacy-provider yarn lerna publish --canary --yes --preid rc
72+ env :
73+ NODE_AUTH_TOKEN : ${{ secrets.ACCESS_TOKEN }}
74+
6275 - name : Lerna Publish
76+ if : github.ref == 'refs/heads/main'
6377 run : NODE_OPTIONS=--openssl-legacy-provider yarn lerna publish --registry github --yes
6478 env :
6579 NODE_AUTH_TOKEN : ${{ secrets.ACCESS_TOKEN }}
80+
81+ deploy :
82+ needs : publish
83+ if : github.ref == 'refs/heads/develop'
84+ uses : ./.github/workflows/release-deploy.yml
85+ secrets : inherit
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ name: Release-Deploy
22on :
33 # !!Emergency override!! uncomment below and access the actions tab in GitHub to run a release/deploy
44 # workflow_dispatch:
5+ workflow_call :
56 release :
67 types : [published]
78
9+
810jobs :
911 lint-test-build :
1012 uses : ./.github/workflows/lint-test-build.yml
You can’t perform that action at this time.
0 commit comments