File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 37
37
uses : ' actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744' # v3.6.0
38
38
# run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
39
39
with :
40
- fetch-depth : ' 0 '
40
+ fetch-depth : 0
41
41
42
42
# - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
43
43
# persist-credentials: false
@@ -112,13 +112,25 @@ jobs:
112
112
113
113
- name : ' Lerna publish [main]'
114
114
if : github.ref == 'refs/heads/main'
115
- # --create-release=github not working
115
+ # https://github.com/lerna/lerna/issues/2532
116
+ id : graduateRelease
117
+ continue-on-error : true
116
118
env :
117
119
GH_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
118
120
NPM_TOKEN : ' ${{ secrets.NPM_TOKEN }}' # Not really needed (already global)
119
121
run : |
120
122
pnpm lerna publish --conventional-commits --exact --conventional-graduate --create-release=github --yes
121
123
124
+ - name : Bump Prod Version Fallback
125
+ if : ${{ always() && steps.graduateRelease.outcome == 'failure' }}
126
+ env :
127
+ GH_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
128
+ NPM_TOKEN : ' ${{ secrets.NPM_TOKEN }}'
129
+ run : |
130
+ echo Falling back to non-graduate release due to https://github.com/lerna/lerna/issues/2532
131
+ git stash
132
+ pnpm lerna publish --conventional-commits --exact --create-release=github --yes
133
+
122
134
- name : ' Lerna publish [next]'
123
135
if : github.ref == 'refs/heads/next'
124
136
env :
You can’t perform that action at this time.
0 commit comments