Skip to content

Commit 4ba200e

Browse files
Add release notes to the github release body
1 parent da92cb4 commit 4ba200e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,27 @@ jobs:
181181
- name: List packages
182182
run: ls -R ./npm
183183
shell: bash
184+
- name: Generate release notes
185+
uses: orhun/git-cliff-action@v4
186+
with:
187+
config: cliff.toml
188+
args: --tag v${{ needs.update-version.outputs.version }} --unreleased
189+
env:
190+
OUTPUT: RELEASE_NOTES.md
191+
GITHUB_REPO: ${{ github.repository }}
184192
- name: Create GitHub Release
185193
uses: softprops/action-gh-release@v2
186194
with:
187195
tag_name: v${{ needs.update-version.outputs.version }}
188196
name: Release v${{ needs.update-version.outputs.version }}
197+
body_path: RELEASE_NOTES.md
189198
files: |
190199
artifacts/bindings-*/*.node
191200
index.js
192201
index.d.ts
193202
LICENSE
194203
LICENSE-3RD-PARTY.txt
204+
CHANGELOG.md
195205
env:
196206
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197207
- name: Publish to NPM

0 commit comments

Comments
 (0)