Skip to content

Commit 623689f

Browse files
committed
Update release action
1 parent 9ea4ce6 commit 623689f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ jobs:
7676
- name: Gzip Artifact
7777
run: gzip .artifact/*
7878

79+
- name: Extract Release Note
80+
run: echo "console.log(require('fs').readFileSync('CHANGELOG.md','utf8').split('## ')[1].slice('${{ github.ref_name }}'.length).trim())" | node > release-note.txt
81+
7982
- name: Publish Release
8083
uses: softprops/action-gh-release@v2
8184
with:
8285
files: .artifact/cjs-module-lexer-*.gz
86+
body_path: release-note.txt

0 commit comments

Comments
 (0)