Skip to content

action-commitlint

action-commitlint #1

Workflow file for this run

name: Commitlint
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm install @commitlint/action-commitlint
- name: Run commitlint
run: npx commitlint --from=$GITHUB_SHA~1 --to=$GITHUB_SHA