Skip to content

feat: Add commit lint check workflow #1

feat: Add commit lint check workflow

feat: Add commit lint check workflow #1

Workflow file for this run

name: Commit Message Linter
on:
pull_request:
types: [opened, synchronize]
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm ci
- name: Run commitlint
run: |
npx commitlint --from=${{ github.event.pull_request.base.sha }} --to=HEAD