Skip to content

Feature/ci

Feature/ci #399

Workflow file for this run

name: Conventional Commit Lint
on:
push:
branches:
- main
pull_request:
branches:
- '**'
workflow_dispatch:
permissions:
contents: read
jobs:
commit-message-lint:
name: Check Commit Message Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install commitlint dependencies
run: npm install -D @commitlint/cli @commitlint/config-conventional
- name: Print tool versions
run: |
git --version
node --version
npm --version
npx commitlint --version
- name: Lint last commit message (push)
if: github.event_name == 'push'
run: npx commitlint --last --verbose
- name: Lint all PR commit messages
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose