Skip to content

Commit

Permalink
add step for changelog text in release body
Browse files Browse the repository at this point in the history
  • Loading branch information
htrinter committed Nov 26, 2023
1 parent 0313e22 commit 293655d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
run: npm run build:all
- name: Package
run: npm run package:all
- name: Get package version
id: package_version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
- name: Extract changelog for package version
id: changelog
run: echo "::set-output name=text::$(sed -n '/## ${{ steps.package_version.outputs.version }}/,/##/{//!p}' CHANGELOG.md)"
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -35,11 +41,9 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ steps.changelog.outputs.text }}
draft: false
prerelease: false
- name: Get package version
id: package_version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
- name: Upload Firefox release assets
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 293655d

Please sign in to comment.