Skip to content

build(deps-dev): bump typescript-eslint from 8.46.1 to 8.46.2 #122

build(deps-dev): bump typescript-eslint from 8.46.1 to 8.46.2

build(deps-dev): bump typescript-eslint from 8.46.1 to 8.46.2 #122

name: Lint for commit messages
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
- name: Install dependencies
run: npm install --save-dev @commitlint/cli @commitlint/config-conventional
- name: Validate current commit (push)
if: github.event_name == 'push'
run: npx commitlint --last --verbose
- name: Validate PR commits
if: github.event_name == 'pull_request'
run: >
npx commitlint
--from ${{ github.event.pull_request.base.sha }}
--to ${{ github.event.pull_request.head.sha}}
--verbose