File tree Expand file tree Collapse file tree 2 files changed +99
-2
lines changed Expand file tree Collapse file tree 2 files changed +99
-2
lines changed Original file line number Diff line number Diff line change 11name : Publish to Maven Central
22
33on :
4- release :
5- types : [published]
4+ push :
5+ branches :
6+ - main
67 workflow_dispatch :
78 inputs :
89 version :
1213
1314jobs :
1415 publish :
16+ name : Create GitHub Release
17+ runs-on : ubuntu-latest
18+ permissions :
19+ contents : write
20+ issues : write
21+ pull-requests : write
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v5
25+ with :
26+ fetch-depth : 0
27+ token : ${{ secrets.GITHUB_TOKEN }}
28+ - name : Create GitHub Release
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ run : |
32+ npx -p semantic-release \
33+ -p @semantic-release/changelog \
34+ -p @semantic-release/git \
35+ -p @semantic-release/github \
36+ -p conventional-changelog-conventionalcommits \
37+ semantic-release
38+ release :
1539 runs-on : ubuntu-latest
1640
1741 env :
Original file line number Diff line number Diff line change 1+ {
2+ "branches" : [" main" ],
3+ "tagFormat" : " ${version}" ,
4+ "plugins" : [
5+ [
6+ " @semantic-release/release-notes-generator" ,
7+ {
8+ "preset" : " conventionalcommits" ,
9+ "writerOpts" : {
10+ "types" : [
11+ {
12+ "type" : " feat" ,
13+ "section" : " Features"
14+ },
15+ {
16+ "type" : " fix" ,
17+ "section" : " Bug Fixes"
18+ },
19+ {
20+ "type" : " docs" ,
21+ "section" : " Documentation" ,
22+ "hidden" : false
23+ },
24+ {
25+ "type" : " deps" ,
26+ "section" : " Dependency Updates" ,
27+ "hidden" : false
28+ },
29+ {
30+ "type" : " chore" ,
31+ "hidden" : true
32+ },
33+ {
34+ "type" : " style" ,
35+ "hidden" : true
36+ },
37+ {
38+ "type" : " refactor" ,
39+ "hidden" : true
40+ },
41+ {
42+ "type" : " perf" ,
43+ "hidden" : true
44+ },
45+ {
46+ "type" : " test" ,
47+ "hidden" : true
48+ },
49+ {
50+ "type" : " ci" ,
51+ "hidden" : true
52+ }
53+ ]
54+ }
55+ }
56+ ],
57+ [
58+ " @semantic-release/changelog" ,
59+ {
60+ "changelogFile" : " CHANGELOG.md" ,
61+ "changelogTitle" : " # Changelog"
62+ }
63+ ],
64+ [
65+ " @semantic-release/git" ,
66+ {
67+ "assets" : [" **" ],
68+ "message" : " chore(release): ${nextRelease.version}\n\n ${nextRelease.notes} [skip ci]"
69+ }
70+ ],
71+ " @semantic-release/github"
72+ ]
73+ }
You can’t perform that action at this time.
0 commit comments