Skip to content

Commit 634621d

Browse files
authored
chore: update release.yaml [ci skip]
1 parent e97c302 commit 634621d

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

.github/workflows/release.yaml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ on:
1313
- 'stable'
1414
- 'hotfix'
1515
- 'experimental'
16+
- 'v1'
1617
default: 'rc'
1718
new_version:
18-
description: 'version (stable and hotfix only)'
19+
description: 'version (relevant for stable, hotfix, and v1)' # Updated description
1920
required: false
2021
default: ''
2122
type: string
@@ -268,3 +269,46 @@ jobs:
268269
- name: Publish
269270
run: |
270271
yarn lerna publish from-git --yes --dist-tag experimental --pre-dist-tag experimental
272+
273+
# ✅ Job 5: V1 Release Flow
274+
v1-release:
275+
if: ${{ github.event.inputs.release_type == 'v1' && github.event.inputs.new_version != '' }}
276+
permissions:
277+
contents: write
278+
id-token: write
279+
runs-on: ubuntu-latest
280+
steps:
281+
- name: Checkout
282+
uses: actions/checkout@v4
283+
with:
284+
token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
285+
fetch-depth: 0
286+
287+
- name: Setup Node
288+
uses: actions/[email protected]
289+
with:
290+
node-version: 22
291+
cache: 'yarn'
292+
293+
- name: Install Dependencies
294+
run: yarn --immutable
295+
296+
- name: Build
297+
run: yarn ci:releasebuild
298+
299+
- name: Version Bump
300+
env:
301+
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
302+
run: |
303+
git config user.name "${{ secrets.UI5_WEBCOMP_BOT_NAME }}"
304+
git config user.email "${{ secrets.UI5_WEBCOMP_BOT_EMAIL }}"
305+
yarn lerna version ${{ github.event.inputs.new_version || '' }} \
306+
--conventional-graduate \
307+
--force-conventional-graduate \
308+
--yes \
309+
--exact \
310+
--create-release github
311+
312+
- name: Publish
313+
run: |
314+
yarn lerna publish from-git --yes --dist-tag "v1"

0 commit comments

Comments
 (0)