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
1515
1616on : [push, pull_request]
1717
18+ permissions :
19+ contents : read
20+
1821jobs :
1922 commitlint :
20- runs-on : ubuntu-22.04
23+ runs-on : ubuntu-latest
2124 steps :
22- - uses : actions/checkout@v3
25+ - uses : actions/checkout@v4
2326 with :
2427 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
3235 - name : Print versions
3336 run : |
3437 git --version
3538 node --version
3639 npm --version
3740 npx commitlint --version
38- - name : Install commitlint
39- run : |
40- npm install conventional-changelog-conventionalcommits
41- npm install commitlint@latest
4241
4342 - name : Validate current commit (last commit) with commitlint
4443 if : github.event_name == 'push'
You can’t perform that action at this time.
0 commit comments