File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -15,30 +15,29 @@ name: CI
15
15
16
16
on : [push, pull_request]
17
17
18
+ permissions :
19
+ contents : read
20
+
18
21
jobs :
19
22
commitlint :
20
- runs-on : ubuntu-22.04
23
+ runs-on : ubuntu-latest
21
24
steps :
22
- - uses : actions/checkout@v3
25
+ - uses : actions/checkout@v4
23
26
with :
24
27
fetch-depth : 0
25
- - name : Install required dependencies
26
- run : |
27
- apt update
28
- apt install -y sudo
29
- sudo apt install -y git curl
30
- curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
31
- sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs
28
+ - name : Setup node
29
+ uses : actions/setup-node@v4
30
+ with :
31
+ node-version : lts/*
32
+ cache : npm
33
+ - name : Install commitlint
34
+ run : npm install -D @commitlint/cli @commitlint/config-conventional
32
35
- name : Print versions
33
36
run : |
34
37
git --version
35
38
node --version
36
39
npm --version
37
40
npx commitlint --version
38
- - name : Install commitlint
39
- run : |
40
- npm install conventional-changelog-conventionalcommits
41
- npm install commitlint@latest
42
41
43
42
- name : Validate current commit (last commit) with commitlint
44
43
if : github.event_name == 'push'
You can’t perform that action at this time.
0 commit comments