Skip to content

Commit fe060db

Browse files
committed
build(github): Add automatic release publishing (closes #128)
1 parent 00d9ac7 commit fe060db

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish (NPM)
1+
name: Publish
22

33
on:
44
push:
@@ -42,7 +42,16 @@ jobs:
4242
env:
4343
CI: true
4444

45+
- name: Generate Release Body
46+
run: npx extract-changelog-release > RELEASE_BODY.md
47+
4548
- name: Publish to NPM
4649
run: npm publish
4750
env:
4851
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
52+
53+
- name: Create GitHub Release
54+
uses: ncipollo/release-action@v1
55+
with:
56+
bodyFile: "RELEASE_BODY.md"
57+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)