Skip to content

Commit 6357d78

Browse files
committed
ci: update release.yaml
1 parent 0466012 commit 6357d78

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ on:
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:

0 commit comments

Comments
 (0)