0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-03 21:48:55 -05:00

fix(ci): use local commitlint (#723)

* fix(ci): use local commitlint

* fix: update commitlint.yml
This commit is contained in:
Gao Sun 2022-05-05 17:00:40 +08:00 committed by GitHub
parent a0b4b98c35
commit 4e7dfe2bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,15 +13,10 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup Node and pnpm - name: Setup Node and pnpm
uses: logto-io/actions-node-pnpm-run-steps@v1.1.0 uses: logto-io/actions-node-pnpm-run-steps@v1.2.1
with:
run-install: false
- name: Install commitlint
run: pnpm add -g @commitlint/{cli,config-conventional}
- name: Commitlint - 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 - name: Commitlint on PR title
run: echo '${{ github.event.pull_request.title }}' | commitlint run: echo '${{ github.event.pull_request.title }}' | npx commitlint