Skip to content

Commit 50f2e9a

Browse files
chore: update .github/workflows/lint.yaml
1 parent ab2bfd7 commit 50f2e9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/lint.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ jobs:
6161
node-version: lts/*
6262
- name: Install commitlint
6363
run: |
64-
npm install -D @commitlint/[email protected] @commitlint/[email protected]
65-
echo "module.exports = { extends: ['@commitlint/config-conventional'], rules: {'subject-case': [0]} };" > commitlint.config.js
64+
COMMITLINT_VERSION=20.1.0
65+
npm install -D @commitlint/cli@$COMMITLINT_VERSION @commitlint/config-conventional@$COMMITLINT_VERSION
66+
echo "module.exports = { extends: ['@commitlint/config-conventional'], rules: {'subject-case': [0], 'header-max-length': [0]} };" > commitlint.config.js
6667
npx commitlint --version
6768
- name: Validate PR commits with commitlint
6869
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)