Skip to content

Commit 2b29390

Browse files
chore: update .github/workflows/lint.yaml
1 parent 08624aa commit 2b29390

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
@@ -67,9 +67,11 @@ jobs:
6767
node-version: lts/*
6868
- name: Install commitlint
6969
run: |
70-
npm install -D @commitlint/cli@19.8.1 @commitlint/config-conventional@19.8.1
71-
echo "module.exports = { extends: ['@commitlint/config-conventional'], rules: {'subject-case': [0]} };" > commitlint.config.js
70+
npm install -D @commitlint/cli@20.1.0 @commitlint/config-conventional@20.0.0
71+
echo "module.exports = { extends: ['@commitlint/config-conventional'], rules: {'subject-case': [0], 'header-max-length': [0]} };" > commitlint.config.js
7272
npx commitlint --version
7373
- name: Validate PR commits with commitlint
7474
if: github.event_name == 'pull_request'
75-
run: 'echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose'
75+
env:
76+
TITLE: ${{ github.event.pull_request.title }}
77+
run: 'echo "$TITLE" | npx commitlint --verbose'

0 commit comments

Comments
 (0)