File tree Expand file tree Collapse file tree 3 files changed +139
-25
lines changed Expand file tree Collapse file tree 3 files changed +139
-25
lines changed Original file line number Diff line number Diff line change 1+ name : ci
2+ on :
3+ push :
4+ branches : [main]
5+ pull_request :
6+ branches : [main]
7+ jobs :
8+ lint :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : checkout
12+ uses : actions/checkout@v4
13+ - name : setup go
14+ uses : actions/setup-go@v5
15+ with :
16+ go-version : " 1.25.x"
17+ - name : lint
18+ 19+ with :
20+ version : latest
21+ test :
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : checkout
25+ uses : actions/checkout@v4
26+ - name : setup go
27+ uses : actions/setup-go@v5
28+ with :
29+ go-version : " 1.25.x"
30+ - name : setup test dependencies
31+ run : |
32+ go install github.com/mfridman/tparse@latest
33+ - name : test
34+ run : make test
35+
36+ release :
37+ if : github.event_name == 'push'
38+ runs-on : ubuntu-latest
39+ needs : [lint, test]
40+ steps :
41+ - uses : actions/checkout@v4
42+ with :
43+ fetch-depth : 0
44+ - name : release
45+ uses : cycjimmy/semantic-release-action@v4
46+ with :
47+ extra_plugins : |
48+ @semantic-release/changelog
49+ @semantic-release/git
50+ @semantic-release/commit-analyzer
51+ @semantic-release/github
52+ @semantic-release/release-notes-generator
53+ conventional-changelog-conventionalcommits
54+ env :
55+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {
2+ "branches" : [
3+ " main"
4+ ],
5+ "plugins" : [
6+ [
7+ " @semantic-release/commit-analyzer" ,
8+ {
9+ "preset" : " conventionalcommits" ,
10+ "releaseRules" : [
11+ {
12+ "type" : " perf" ,
13+ "release" : " patch"
14+ },
15+ {
16+ "type" : " chore" ,
17+ "scope" : " deps" ,
18+ "release" : " patch"
19+ }
20+ ]
21+ }
22+ ],
23+ [
24+ " @semantic-release/release-notes-generator" ,
25+ {
26+ "preset" : " conventionalcommits" ,
27+ "presetConfig" : {
28+ "types" : [
29+ {
30+ "type" : " feat" ,
31+ "section" : " ✨ Features"
32+ },
33+ {
34+ "type" : " fix" ,
35+ "section" : " 🐛 Bug Fixes"
36+ },
37+ {
38+ "type" : " perf" ,
39+ "section" : " 🚀 Performance"
40+ },
41+ {
42+ "type" : " chore" ,
43+ "section" : " 🧹 Miscellaneous"
44+ },
45+ {
46+ "type" : " refactor" ,
47+ "section" : " 🧹 Miscellaneous"
48+ },
49+ {
50+ "type" : " chore" ,
51+ "scope" : " deps" ,
52+ "section" : " 🛠️ Dependencies"
53+ }
54+ ]
55+ }
56+ }
57+ ],
58+ [
59+ " @semantic-release/changelog" ,
60+ {
61+ "changelogFile" : " CHANGELOG.md"
62+ }
63+ ],
64+ [
65+ " @semantic-release/git" ,
66+ {
67+ "assets" : [
68+ " CHANGELOG.md"
69+ ],
70+ "message" : " chore(release): ${nextRelease.version} [skip ci]"
71+ }
72+ ],
73+ [
74+ " @semantic-release/github" ,
75+ {
76+ "successComment" : false ,
77+ "failComment" : false ,
78+ "failTitle" : false ,
79+ "labels" : false ,
80+ "releasedLabels" : false
81+ }
82+ ]
83+ ]
84+ }
You can’t perform that action at this time.
0 commit comments