Skip to content

Commit

Permalink
add changelog to release body
Browse files Browse the repository at this point in the history
  • Loading branch information
htrinter authored Nov 26, 2023
1 parent 0313e22 commit 2b20da2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
tags:
- 'v*'
jobs:
call-test-workflow:
test-workflow:
uses: ./.github/workflows/test-workflow.yml
with:
node-version: ${{ vars.NODE_VERSION }}
call-release-workflow:
release-workflow:
uses: ./.github/workflows/release-workflow.yml
needs: call-test-workflow
needs: test-workflow
with:
node-version: ${{ vars.NODE_VERSION }}
11 changes: 7 additions & 4 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build release
name: Release workflow
on:
workflow_call:
inputs:
Expand Down Expand Up @@ -27,6 +27,11 @@ jobs:
run: npm run build:all
- name: Package
run: npm run package:all
- name: Get package version
id: package_version
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Extract changelog for package version
run: sed -n '/## ${{ steps.package_version.outputs.version }}/,/##/{//!p}' CHANGELOG.md > CHANGELOG_RELEASE.md
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -35,11 +40,9 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: CHANGELOG_RELEASE.md
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
2 changes: 1 addition & 1 deletion .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run tests
on: [push, pull_request]
jobs:
call-test-workflow:
test-workflow:
uses: ./.github/workflows/test-workflow.yml
with:
node-version: ${{ vars.NODE_VERSION }}

0 comments on commit 2b20da2

Please sign in to comment.