File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments