Skip to content

ci(typos): add support for typos #2

ci(typos): add support for typos

ci(typos): add support for typos #2

name: Validate PR Title
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
on:
pull_request:
types: [opened, edited]
jobs:
commitlint:
runs-on: ubuntu-latest
name: commitlint
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set nodejs
uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org/
node-version: lts/*
- name: Install commitlint dependencies
run: npm i @commitlint/config-conventional@latest
- name: Validate PR title with commitlint
env:
TITLE: ${{ github.event.pull_request.title }}
run: echo "$TITLE" | npx commitlint@latest -V