Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

chore: clearify swapping function #30

chore: clearify swapping function

chore: clearify swapping function #30

name: Commitlint Check
on: [push, pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
- name: Install deps
run: npm install --save-dev @commitlint/{cli,config-conventional}
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --last --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose