mirror of
https://github.com/logto-io/logto.git
synced 2025-01-13 21:30:30 -05:00
4e7dfe2bec
* fix(ci): use local commitlint * fix: update commitlint.yml
22 lines
547 B
YAML
22 lines
547 B
YAML
name: Commitlint
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, synchronize, reopened]
|
|
|
|
jobs:
|
|
lint-commits:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node and pnpm
|
|
uses: logto-io/actions-node-pnpm-run-steps@v1.2.1
|
|
|
|
- name: Commitlint
|
|
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
|
|
|
|
- name: Commitlint on PR title
|
|
run: echo '${{ github.event.pull_request.title }}' | npx commitlint
|