Skip to content

Commit 97a287c

Browse files
Merge pull request #345 from UiPath/fix/commitlint-deps
fix(ci): install deps for commitlint
2 parents 3ebaf2d + dc46a19 commit 97a287c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/commitlint.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,28 @@ jobs:
1616
with:
1717
node-version: 22
1818

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+
1929
- name: Install commitlint
2030
run: |
2131
npm install conventional-changelog-conventionalcommits
2232
npm install commitlint@latest
33+
npm install @commitlint/config-conventional
2334
2435
- name: Configure
2536
run: |
2637
echo "export default { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js
2738
2839
2940
- name: Validate current commit (last commit) with commitlint
30-
if: github.event_name == 'push'
3141
run: npx commitlint --last --verbose
3242

3343
- name: Validate PR commits with commitlint

0 commit comments

Comments
 (0)