File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1919 required : false
2020 default : ' '
2121 type : string
22- npm_tag :
23- description : ' tag (hotfix only)'
24- required : false
25- default : ' '
26- type : string
2722
2823 # Scheduled automatic RC releases
2924 schedule :
@@ -184,7 +179,7 @@ jobs:
184179
185180 # ✅ Job 3: Hotfix Release Flow
186181 hotfix-release :
187- if : ${{ github.event.inputs.release_type == 'hotfix' }}
182+ if : ${{ github.event.inputs.release_type == 'hotfix' && github.event.inputs.new_version != '' }}
188183 permissions :
189184 contents : write
190185 id-token : write
@@ -224,7 +219,9 @@ jobs:
224219 --create-release github
225220
226221 - name : Publish
227- run : yarn lerna publish from-git --yes --dist-tag ${{ github.event.inputs.npm_tag || 'sf' }}
222+ run : |
223+ major_minor=$(echo "${{ github.event.inputs.new_version }}" | cut -d. -f1,2)
224+ yarn lerna publish from-git --yes --dist-tag "hotfix-${major_minor}"
228225
229226 # ✅ Job 4: Experimental Release Flow
230227 experimental-release :
You can’t perform that action at this time.
0 commit comments