Skip to content

Commit 3713cd7

Browse files
committed
chore: use gh cli for github releases with changelog body
1 parent 267fda4 commit 3713cd7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ jobs:
6868
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6969

7070
- name: 🏷️ Create GitHub Release
71-
uses: softprops/action-gh-release@v2
72-
with:
73-
tag_name: v${{ needs.check.outputs.version }}
74-
generate_release_notes: true
71+
run: |
72+
VERSION="${{ needs.check.outputs.version }}"
73+
NOTES=$(awk -v ver="$VERSION" '/^## /{if(found)exit;v=$2;gsub(/[\[\]]/,"",v);if(v==ver){found=1;next}}found{print}' CHANGELOG.md)
74+
gh release create "v${VERSION}" --title "v${VERSION}" --notes "${NOTES}"
75+
env:
76+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)