File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,29 @@ jobs:
20
20
steps :
21
21
- name : Checkout
22
22
uses : actions/checkout@v3
23
+ with :
24
+ fetch-depth : 0
23
25
- name : Download artifact
24
26
uses : actions/download-artifact@v3
25
27
with :
26
28
name : ${{ needs.build.outputs.artifact_name }}
27
29
path : .
30
+ - name : Generate release notes
31
+ id : changelog
32
+ run : |
33
+ mkdir tmp
34
+ outfile=tmp/changelog.txt
35
+ echo "outfile=${outfile}" >> $GITHUB_OUTPUT
36
+ npx --package standard-changelog@^2.0.0 --package conventional-changelog-conventionalcommits@^5.0.0 standard-changelog --preset conventionalcommits --release-count 2 --infile $outfile.tmp --outfile $outfile.tmp
37
+ sed '1,3d' $outfile.tmp > $outfile
28
38
- name : Create GitHub release
29
39
uses : softprops/action-gh-release@v1
30
40
with :
31
41
token : ${{ secrets.GH_TOKEN }}
32
42
fail_on_unmatched_files : true
33
43
prerelease : ${{ contains(github.ref_name, '-') }}
34
44
files : ' *.tgz'
45
+ body_path : ${{ github.workspace }}/${{ steps.changelog.outputs.outfile }}
35
46
github :
36
47
name : GitHub Packages
37
48
uses : ./.github/workflows/_publish.yml
You can’t perform that action at this time.
0 commit comments