Skip to content

Commit 422aeef

Browse files
committed
testing new auto-release notes
1 parent 5c13423 commit 422aeef

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/release_and_publish.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ jobs:
2626
- name: Build the dist folder including only the library
2727
run: npm run build:lib
2828

29+
- name: Generate release notes
30+
id: release_notes
31+
run: |
32+
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^)
33+
echo "PREV_TAG=$PREV_TAG" >> $GITHUB_ENV
34+
NOTES=$(git log $PREV_TAG..HEAD --pretty=format:'- %s (%an)')
35+
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
36+
echo "$NOTES" >> $GITHUB_ENV
37+
echo "EOF" >> $GITHUB_ENV
38+
2939
- name: Create GitHub Release
3040
id: create_release
3141
uses: actions/create-release@v1
@@ -34,6 +44,7 @@ jobs:
3444
with:
3545
tag_name: ${{ github.ref }}
3646
release_name: ${{ github.ref }}
47+
body: ${{ env.RELEASE_NOTES }}
3748
draft: false
3849
prerelease: false
3950

0 commit comments

Comments
 (0)