Skip to content

Commit a62a0d8

Browse files
committed
Set GitHub Release body in CI
1 parent 86f2bfd commit a62a0d8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,24 @@ jobs:
2727
- run: npm run docs
2828

2929
# Release
30+
- name: Get tag message
31+
if: github.ref_type == 'tag'
32+
id: tag_message
33+
run: |
34+
{
35+
echo "message<<EOF"
36+
git fetch -f origin tag ${{github.ref_name}}
37+
git tag -l ${{github.ref_name}} --format="%(contents)"
38+
echo "EOF"
39+
} >> "$GITHUB_OUTPUT"
3040
- name: Create GitHub Release
3141
if: github.ref_type == 'tag'
3242
uses: softprops/action-gh-release@v2
43+
with:
44+
body: |
45+
**[NPM package](https://www.npmjs.com/package/typedrest/v/ ${{steps.gitversion.outputs.nuGetVersion}})**
46+
## Changes
47+
${{steps.tag_message.outputs.message}}
3348
3449
# Publish (release only)
3550
- name: Publish documentation

0 commit comments

Comments
 (0)