0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/.github/workflows/commitlint.yml

23 lines
517 B
YAML
Raw Normal View History

2021-08-02 11:18:22 -05:00
name: Commitlint
on: [pull_request]
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node and pnpm
uses: logto-io/actions-node-pnpm-run-steps@v1.0.2
2021-08-02 11:18:22 -05:00
with:
run-install: false
2021-08-02 11:18:22 -05:00
- name: Install commitlint
run: pnpm add -g @commitlint/{cli,config-conventional}
- name: Commitlint
run: commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD