File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -16,18 +16,28 @@ jobs:
16
16
with :
17
17
node-version : 22
18
18
19
+ - name : Install Git
20
+ run : |
21
+ if ! command -v git &> /dev/null; then
22
+ echo "Git is not installed. Installing..."
23
+ sudo apt-get update
24
+ sudo apt-get install -y git
25
+ else
26
+ echo "Git is already installed."
27
+ fi
28
+
19
29
- name : Install commitlint
20
30
run : |
21
31
npm install conventional-changelog-conventionalcommits
22
32
npm install commitlint@latest
33
+ npm install @commitlint/config-conventional
23
34
24
35
- name : Configure
25
36
run : |
26
37
echo "export default { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js
27
38
28
39
29
40
- name : Validate current commit (last commit) with commitlint
30
- if : github.event_name == 'push'
31
41
run : npx commitlint --last --verbose
32
42
33
43
- name : Validate PR commits with commitlint
You can’t perform that action at this time.
0 commit comments