Skip to content

chore(main): release 1.0.0 (#1) #6

chore(main): release 1.0.0 (#1)

chore(main): release 1.0.0 (#1) #6

Workflow file for this run

name: Commitlint
on:
pull_request:
types: [opened, synchronize, reopened, edited]
push:
branches:
- main
- master
jobs:
commitlint:
name: Validate Commit Messages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Validate current commit (push)
if: github.event_name == 'push'
run: |
# Check if this is the first commit
if git rev-parse HEAD~1 >/dev/null 2>&1; then
# Not the first commit, validate from previous commit
npx commitlint --from HEAD~1 --to HEAD --verbose
else
# First commit, validate only HEAD
npx commitlint --from HEAD --to HEAD --verbose
fi
- 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