Skip to content

ci: fix commitlint run command in CI workflow #2

ci: fix commitlint run command in CI workflow

ci: fix commitlint run command in CI workflow #2

Workflow file for this run

name: CI
on:
push: # Run commitlint on every push to any branch
permissions:
contents: read # for checkout
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history to check commit differences
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install dependencies
run: npm ci
- name: Validate all commits from push
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose