Skip to content

Commit

Permalink
chore: create commit-lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering87 authored Nov 30, 2024
1 parent 0c72f0a commit 1fdb489
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
branches:
- '*' # Runs on any push to any branch
pull_request:
branches:
- '*' # Runs on any pull request targeting any branch
name: Lint commits
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fixup git permissions
# https://github.com/actions/checkout/issues/766
shell: bash
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/[email protected]
- run: npm install conventional-changelog
- run: npm install @commitlint/cli
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD

0 comments on commit 1fdb489

Please sign in to comment.