Skip to content

Commit dbfe25a

Browse files
authored
ci: support automatically creating github release (#24)
1 parent 87125db commit dbfe25a

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
changelog:
2+
categories:
3+
- title: Feature
4+
labels:
5+
- enhancement
6+
- title: Fix
7+
labels:
8+
- bug
9+
- title: Other Changes
10+
labels:
11+
- "*"

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,19 @@ jobs:
2828
git add .
2929
git commit -m 'release: clickstream Web ${{ env.NEW_VERSION }}'
3030
git push
31+
git tag v${{ env.NEW_VERSION }}
32+
git push origin v${{ env.NEW_VERSION }}
33+
- name: Prepare release file
34+
run: |
35+
npm i
36+
npm run pack
37+
- name: Create GitHub release
38+
uses: softprops/action-gh-release@v1
39+
with:
40+
name: "Clickstream Web ${{ env.NEW_VERSION }}"
41+
files: |
42+
dist/clickstream-web.min.js
43+
dist/clickstream-web.min.js.map
44+
tag_name: "v${{ env.NEW_VERSION }}"
45+
prerelease: true
46+
generate_release_notes: true

0 commit comments

Comments
 (0)