Conventional commit lint #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conventional commit lint | |
on: | |
workflow_dispatch: | |
jobs: | |
conventional-commit-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: '20.x' | |
- name: Setup commitlint | |
run: | | |
npm install -g @commitlint/config-conventional @commitlint/cli | |
- name: Validate last commit | |
run: | | |
npx commitlint \ | |
--extends '@commitlint/config-conventional' \ | |
--last \ | |
--verbose |