Skip to content

Commit fab3661

Browse files
authored
build: parse CHANGELOG and add entries to GitHub release body (#45)
* Add changelog parsing to release workflow * Move id before uses
1 parent 9021bc7 commit fab3661

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@ jobs:
2323
- name: get-version
2424
id: package-version
2525
uses: martinbeentjes/[email protected]
26+
- name: Parse changelog
27+
id: parse-changelog
28+
uses: schwma/[email protected]
29+
with:
30+
version: '${{ steps.package-version.outputs.current-version }}'
2631
- name: Create a GitHub release
2732
uses: ncipollo/release-action@v1
2833
with:
29-
tag: "v${{ steps.package-version.outputs.current-version }}"
30-
# body: changelog...
34+
tag: 'v${{ steps.package-version.outputs.current-version }}'
35+
body: '${{ steps.parse-changelog.outputs.body }}'
3136
- run: npm publish --access public
3237
env:
3338
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)