Skip to content

Commit cac9edf

Browse files
committed
Generate Release Notes From Commit Messages
1 parent 60a39b5 commit cac9edf

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ jobs:
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: Changelog
18+
uses: scottbrenner/generate-changelog-action@master
19+
id: Changelog
20+
env:
21+
REPO: ${{ github.repository }}
1522
- name: Create Release
1623
id: create_release
1724
uses: actions/create-release@v1
@@ -20,12 +27,10 @@ jobs:
2027
with:
2128
tag_name: ${{ github.ref }}
2229
release_name: Release ${{ github.ref }}
23-
body: |
24-
Changes in this Release
25-
- First Change
26-
- Second Change
2730
draft: false
2831
prerelease: false
32+
body: |
33+
${{ steps.Changelog.outputs.changelog }}
2934
3035
publish-npm:
3136
needs: build

0 commit comments

Comments
 (0)