Skip to content

Commit 68d58a0

Browse files
fix(ci): fix commit-lint.yml GitHub Action
1 parent 6086f10 commit 68d58a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/commit-lint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ jobs:
2121
shell: bash
2222
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2323
- uses: actions/[email protected]
24-
- run: npm install conventional-changelog
25-
- run: npm install @commitlint/cli
26-
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
24+
- run: npm install --save-dev @commitlint/cli @commitlint/config-conventional conventional-changelog-conventionalcommits
25+
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits || 1 }} --to HEAD

0 commit comments

Comments
 (0)