Skip to content

Commit

Permalink
feat(publish): auto extract release notes from CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiechen committed May 29, 2024
1 parent 8903f9d commit bca9d23
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ jobs:
- name: Build package
if: inputs.publish_github
run: npm run package
- name: Extract release notes
if: inputs.publish_github
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v2
with:
changelog_file: CHANGELOG.md
- name: Publish to GitHub release
if: inputs.publish_github
uses: softprops/action-gh-release@v1
Expand All @@ -82,6 +88,8 @@ jobs:
name: ${{ steps.get_repo_name.outputs.name }} ${{ steps.set_release_tag.outputs.tag }}
body: |
Release ${{ steps.get_repo_name.outputs.name }} ${{ steps.set_release_tag.outputs.tag }}.
${{ steps.extract-release-notes.outputs.release_notes }}
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit bca9d23

Please sign in to comment.