Skip to content

Commit 53c344d

Browse files
authored
ci: run build on step earlier [ci skip]
1 parent 7dd11fb commit 53c344d

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/release.yaml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,21 @@ jobs:
5555
- name: Install Dependencies
5656
run: yarn --frozen-lockfile
5757

58+
- name: Build
59+
run: yarn ci:releasebuild
60+
5861
- name: Version Bump
5962
env:
6063
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
6164
run: |
6265
git config user.name "${{ secrets.UI5_WEBCOMP_BOT_NAME }}"
6366
git config user.email "${{ secrets.UI5_WEBCOMP_BOT_EMAIL }}"
64-
yarn lerna version ${{ github.event.inputs.new_version || '' }} --conventional-graduate --force-conventional-graduate --yes --exact --create-release github
65-
66-
- name: Build
67-
run: yarn ci:releasebuild
67+
yarn lerna version ${{ github.event.inputs.new_version || '' }} \
68+
--conventional-graduate \
69+
--force-conventional-graduate \
70+
--yes \
71+
--exact \
72+
--create-release github
6873
6974
- name: Publish
7075
run: |
@@ -134,6 +139,9 @@ jobs:
134139
- name: Install Dependencies
135140
run: yarn --frozen-lockfile
136141

142+
- name: Build
143+
run: yarn ci:releasebuild
144+
137145
- name: Version Bump
138146
env:
139147
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
@@ -142,9 +150,6 @@ jobs:
142150
git config user.email "${{ secrets.UI5_WEBCOMP_BOT_EMAIL }}"
143151
yarn lerna version --conventional-prerelease --force-publish --yes --exact --create-release github
144152
145-
- name: Build
146-
run: yarn ci:releasebuild
147-
148153
- name: Publish
149154
run: |
150155
yarn lerna publish from-git --yes
@@ -172,7 +177,6 @@ jobs:
172177
const commentOnFixedIssues = (await import('${{ github.workspace }}/.github/actions/commentOnFixedIssues.mjs')).default;
173178
await commentOnFixedIssues({ github, context });
174179
175-
176180
# ✅ Job 3: Hotfix Release Flow
177181
hotfix-release:
178182
if: ${{ github.event.inputs.release_type == 'hotfix' }}
@@ -198,6 +202,9 @@ jobs:
198202
- name: Install Dependencies
199203
run: yarn --frozen-lockfile
200204

205+
- name: Build
206+
run: yarn ci:releasebuild
207+
201208
- name: Version Bump
202209
env:
203210
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
@@ -206,13 +213,9 @@ jobs:
206213
git config user.email "${{ secrets.UI5_WEBCOMP_BOT_EMAIL }}"
207214
yarn lerna version ${{ github.event.inputs.new_version || '' }} --conventional-graduate --force-conventional-graduate --yes --exact --create-release github
208215
209-
- name: Build
210-
run: yarn ci:releasebuild
211-
212216
- name: Publish
213217
run: yarn lerna publish from-git --yes --dist-tag ${{ github.event.inputs.npm_tag || 'sf' }}
214218

215-
216219
# ✅ Job 4: Experimental Release Flow
217220
experimental-release:
218221
if: ${{ github.event.inputs.release_type == 'experimental' }}
@@ -236,6 +239,9 @@ jobs:
236239
- name: Install Dependencies
237240
run: yarn --frozen-lockfile
238241

242+
- name: Build
243+
run: yarn ci:releasebuild
244+
239245
- name: Version Bump
240246
env:
241247
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
@@ -252,9 +258,6 @@ jobs:
252258
--ignore-changes @ui5/webcomponents-cypress-internal \
253259
--ignore-changes @ui5/webcomponents-cypress-ct
254260
255-
- name: Build
256-
run: yarn ci:releasebuild
257-
258261
- name: Publish
259262
run: |
260263
yarn lerna publish from-git --yes --dist-tag experimental

0 commit comments

Comments
 (0)