File tree 1 file changed +25
-13
lines changed
1 file changed +25
-13
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
1
2
on :
2
3
push :
3
4
branches :
@@ -10,24 +11,20 @@ jobs:
10
11
get-next-version :
11
12
uses : semantic-release-action/next-release-version/.github/workflows/next-release-version.yml@v4
12
13
13
- build :
14
- name : Build
15
- runs-on : ubuntu-latest
16
- needs :
17
- - get-next-version
14
+ commitlint :
15
+ name : CommitLint
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
18
22
19
- steps :
20
- - name : Checkout
21
- uses : actions/checkout@v4
22
- with :
23
- persist-credentials : false
24
- fetch-depth : 0
25
- # checkout as wfcd-bot-boi
26
- token : ${{ secrets.GH_TOKEN }}
27
23
- name : Setup Node.js
28
24
uses : actions/setup-node@v4
29
25
with :
30
26
node-version : lts/*
27
+
31
28
- name : Install Commitlint dependencies
32
29
run : npm install --global @commitlint/{cli,config-conventional}
33
30
39
36
if : github.event_name == 'push'
40
37
run : npx commitlint --last --verbose
41
38
39
+ build :
40
+ name : Build
41
+ runs-on : ubuntu-latest
42
+ needs :
43
+ - get-next-version
44
+ - commitlint
45
+
46
+ steps :
47
+ - name : Checkout
48
+ uses : actions/checkout@v4
49
+ with :
50
+ persist-credentials : false
51
+ # checkout as wfcd-bot-boi
52
+ token : ${{ secrets.GH_TOKEN }}
42
53
43
54
- name : Install semantic-release-cargo
44
55
if : needs.get-next-version.outputs.new-release-published == 'true'
67
78
- name : Semantic Release
68
79
id : release
69
80
81
+ if : needs.get-next-version.outputs.new-release-published == 'true'
70
82
env :
71
83
# push as wfcd-bot-boi
72
84
GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments