fix(pre_commit): ⬆ pre_commit autoupdate #95
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 Commits | |
on: [pull_request] | |
jobs: | |
lint-commits: | |
name: Lint Commits | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install Commit Linting Tool 🔧 | |
run: npm install --save-dev @commitlint/{cli,config-conventional} | |
- name: Set Linting Config to Conventional Commits spec 🔧 | |
run: | | |
echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js | |
- name: Lint 🚨 | |
run: npx commitlint --from HEAD~1 --to HEAD --verbose |