Skip to content

Commit c143e33

Browse files
authored
chore: add Merge Release Changelog step for stable releases
Reintroduce the Merge Release Changelog step for stable releases.
1 parent 6cd4f6e commit c143e33

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ jobs:
9191
- name: Version - Experimental
9292
if: ${{ github.event.inputs.release_type == 'experimental' }}
9393
run: |
94+
git config user.name "${{ secrets.UI5_WEBCOMP_BOT_NAME }}"
95+
git config user.email "${{ secrets.UI5_WEBCOMP_BOT_EMAIL }}"
9496
git_hash=$(git rev-parse --short "${{ github.sha }}")
9597
yarn lerna version "0.0.0-${git_hash}" \
9698
--exact \
@@ -120,17 +122,6 @@ jobs:
120122
run: |
121123
yarn lerna publish from-git --yes
122124
123-
- name: Merge Release Changelog
124-
if: ${{ github.event.inputs.release_type == 'stable' }}
125-
uses: actions/github-script@v7
126-
env:
127-
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
128-
with:
129-
github-token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
130-
script: |
131-
const mergeReleaseChangelog = (await import('${{ github.workspace }}/.github/actions/mergeReleaseChangelog.mjs')).default;
132-
await mergeReleaseChangelog({ github , context });
133-
134125
- name: Publish - RC
135126
if: ${{ github.event.inputs.release_type == 'rc'}}
136127
env:
@@ -149,6 +140,18 @@ jobs:
149140
run: |
150141
yarn lerna publish from-git --yes --dist-tag experimental
151142
143+
# Changelog
144+
- name: Merge Release Changelog
145+
if: ${{ github.event.inputs.release_type == 'stable' }}
146+
uses: actions/github-script@v7
147+
env:
148+
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
149+
with:
150+
github-token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
151+
script: |
152+
const mergeReleaseChangelog = (await import('${{ github.workspace }}/.github/actions/mergeReleaseChangelog.mjs')).default;
153+
await mergeReleaseChangelog({ github , context });
154+
152155
# Conditional Deploy
153156
# Deploy RC
154157
- name: Pre-Deploy RC

0 commit comments

Comments
 (0)