Skip to content

ci: add commitlint, Husky, and release-please #10

ci: add commitlint, Husky, and release-please

ci: add commitlint, Husky, and release-please #10

Workflow file for this run

name: Commitlint
on:
pull_request:
branches: [main]
types: [opened, edited, synchronize, reopened]
jobs:
lint:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install commitlint
run: bun install --no-save @commitlint/cli @commitlint/config-conventional
- name: Lint PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
printf '%s\n' "$PR_TITLE" > /tmp/pr_title.txt
bunx commitlint < /tmp/pr_title.txt