Skip to content

Commit

Permalink
Add ChangeLog to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
arnested committed Jun 19, 2021
1 parent b3832b0 commit 7f553aa
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ jobs:
git push origin ${{ steps.major-version.outputs.tag }} --force
- name: Get current date
id: date
run: echo "::set-output name=date::$(date --iso-8601=seconds)"
run: echo "::set-output name=date::$(date --iso-8601)"
- name: Build full ChangeLog
if: ${{ steps.version.outputs.new_tag }} != ''
run: npx conventional-changelog-cli --release-count=0 --preset=eslint --outfile="${{ runner.temp }}/FullChangeLog.md"
- name: Create/update release ${{ steps.major-version.outputs.tag }}
if: ${{ steps.version.outputs.new_tag }} != ""
uses: ncipollo/release-action@v1
Expand All @@ -43,12 +46,15 @@ jobs:
allowUpdates: true
tag: ${{ steps.major-version.outputs.tag }}
name: ${{ steps.version.outputs.new_tag }} (${{ steps.date.outputs.date }})
omitBody: true
bodyFile: ${{ runner.temp }}/FullChangeLog.md
- name: Build ChangeLog
if: ${{ steps.version.outputs.new_tag }} != ''
run: npx conventional-changelog-cli --release-count=2 --outfile="${{ runner.temp }}/ChangeLog.md"
- name: Create release ${{ steps.version.outputs.new_tag }}
if: ${{ steps.version.outputs.new_tag }} != ""
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.version.outputs.new_tag }}
name: Release ${{ steps.version.outputs.new_tag }}
omitBody: true
bodyFile: ${{ runner.temp }}/ChangeLog.md

0 comments on commit 7f553aa

Please sign in to comment.