Skip to content

Commit 748d577

Browse files
committed
commitlint.sh,CI: install commitlint in 1line
1 parent f6b092a commit 748d577

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ jobs:
8989
npm --version
9090
- name: Install commitlint
9191
run: |
92-
npm install conventional-changelog-conventionalcommits
93-
npm install commitlint@latest
92+
npm install conventional-changelog-conventionalcommits commitlint@latest
9493
- name: Install yarn
9594
run: |
9695
npm install --global yarn
@@ -122,8 +121,7 @@ jobs:
122121
sudo apt install --yes --no-install-recommends npm curl
123122
- name: Install commitlint
124123
run: |
125-
npm install conventional-changelog-conventionalcommits
126-
npm install commitlint@latest
124+
npm install conventional-changelog-conventionalcommits commitlint@latest
127125
- name: Install yarn
128126
run: |
129127
npm install --global yarn

commitlint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ set -euxo pipefail
44
# cd to directory of this script
55
cd "$(dirname "$0")"
66
npm install
7-
npm install conventional-changelog-conventionalcommits
8-
npm install commitlint@latest
7+
npm install conventional-changelog-conventionalcommits commitlint@latest
98
npx commitlint --version
109
npx commitlint $@
1110
cd ..

0 commit comments

Comments
 (0)