Skip to content

Commit 34434f6

Browse files
committed
feat: update release workflow to extract changelog notes for GitHub Releases
1 parent b6f4991 commit 34434f6

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,20 @@ jobs:
128128
- name: Publish
129129
run: npm publish ./build
130130

131+
- name: Extract changelog for version
132+
id: changelog
133+
run: |
134+
VERSION=$(node -p "require('./package.json').version")
135+
NOTES=$(awk "/^## ${VERSION}\$/{flag=1; next} /^## [0-9]/{flag=0} flag" CHANGELOG.md)
136+
echo "NOTES<<EOF" >> $GITHUB_OUTPUT
137+
echo "$NOTES" >> $GITHUB_OUTPUT
138+
echo "EOF" >> $GITHUB_OUTPUT
139+
131140
- name: Release
132141
uses: softprops/action-gh-release@v2
133142
if: startsWith(github.ref, 'refs/tags/')
134143
with:
135-
generate_release_notes: true
144+
body: ${{ steps.changelog.outputs.NOTES }}
136145

137146
- name: Get version
138147
id: get_version

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
> - :house: [Internal]
1010
> - :nail_care: [Polish]
1111

12+
## 4.11.6
13+
14+
#### :house: Internal
15+
16+
- Release workflow now populates GitHub Release notes from CHANGELOG.md instead of relying on auto-generated notes
17+
1218
## 4.11.5
1319

1420
#### :rocket: New Feature

0 commit comments

Comments
 (0)