Skip to content

Commit e459b3c

Browse files
chore: update .github/workflows/lint.yaml
1 parent f6439a5 commit e459b3c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/lint.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ jobs:
6161
node-version: lts/*
6262
- name: Install commitlint
6363
run: |
64-
npm install -D @commitlint/cli@19.8.1 @commitlint/config-conventional@19.8.1
65-
echo "module.exports = { extends: ['@commitlint/config-conventional'], rules: {'subject-case': [0]} };" > commitlint.config.js
64+
npm install -D @commitlint/cli@20.1.0 @commitlint/config-conventional@20.0.0
65+
echo "module.exports = { extends: ['@commitlint/config-conventional'], rules: {'subject-case': [0], 'header-max-length': [0]} };" > commitlint.config.js
6666
npx commitlint --version
6767
- name: Validate PR commits with commitlint
6868
if: github.event_name == 'pull_request'
69-
run: 'echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose'
69+
env:
70+
TITLE: ${{ github.event.pull_request.title }}
71+
run: 'echo "$TITLE" | npx commitlint --verbose'

0 commit comments

Comments
 (0)