mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
fix(ci): use local commitlint (#723)
* fix(ci): use local commitlint * fix: update commitlint.yml
This commit is contained in:
parent
a0b4b98c35
commit
4e7dfe2bec
1 changed files with 3 additions and 8 deletions
11
.github/workflows/commitlint.yml
vendored
11
.github/workflows/commitlint.yml
vendored
|
@ -13,15 +13,10 @@ jobs:
|
|||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node and pnpm
|
||||
uses: logto-io/actions-node-pnpm-run-steps@v1.1.0
|
||||
with:
|
||||
run-install: false
|
||||
|
||||
- name: Install commitlint
|
||||
run: pnpm add -g @commitlint/{cli,config-conventional}
|
||||
uses: logto-io/actions-node-pnpm-run-steps@v1.2.1
|
||||
|
||||
- name: Commitlint
|
||||
run: commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
|
||||
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
|
||||
|
||||
- name: Commitlint on PR title
|
||||
run: echo '${{ github.event.pull_request.title }}' | commitlint
|
||||
run: echo '${{ github.event.pull_request.title }}' | npx commitlint
|
||||
|
|
Loading…
Add table
Reference in a new issue