Skip to content

Commit

Permalink
ci(workflows): [release] fix notes logic
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Oct 22, 2023
1 parent ef5e52e commit 0e96454
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ jobs:
run: yarn pack -o %s-%v.tgz
- id: release-notes
name: Generate release notes
run: echo "$(node ./dist/cli.mjs changelog)" >>$GITHUB_STEP_SUMMARY
run: |
node ./dist/cli.mjs changelog -wo $NOTES_FILE
echo "$(cat $NOTES_FILE)" >>$GITHUB_STEP_SUMMARY
- id: tag
name: Create annotated tag
run: |
Expand All @@ -128,7 +130,7 @@ jobs:
PRERELEASE: ${{ needs.preflight.outputs.prerelease }}
TAG: ${{ needs.preflight.outputs.tag }}
run: |
gh release create $TAG *.tgz --title=$TAG --notes="$(cat $GITHUB_STEP_SUMMARY)" --verify-tag --prerelease=$PRERELEASE --discussion-category=releases
gh release create $TAG *.tgz --title=$TAG --notes-file=$NOTES_FILE --verify-tag --prerelease=$PRERELEASE --discussion-category=releases
- id: close-issues
name: Close released issues
uses: bdougie/close-issues-based-on-label@master
Expand Down

0 comments on commit 0e96454

Please sign in to comment.