Skip to content

ci: add commitlint GitHub action #3

ci: add commitlint GitHub action

ci: add commitlint GitHub action #3

Workflow file for this run

name: Commit Message Lint
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.16.1
- name: Install dependencies
run: npm install @commitlint/{config-conventional,cli}
- name: Lint commit messages
run: |
git fetch origin main
npx commitlint --from=dev --to=$GITHUB_SHA --verbose