Skip to content

Commit

Permalink
ci: 👷 update gh action to trigger commitlint on each push in every br…
Browse files Browse the repository at this point in the history
…anch
  • Loading branch information
jooyoungseo committed Dec 31, 2023
1 parent 26fa678 commit 11421af
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/commit-message-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: Lint Commit Messages

on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]

jobs:
commitlint:
Expand All @@ -19,11 +17,10 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '20.3.1'
node-version: 'lts/*'

- name: Install commitlint
run: |
npm install @commitlint/{config-conventional,cli}
- name: Install Dependencies
run: yarn install

- name: Lint Commit Messages
run: npx commitlint --from=HEAD~1 --to=HEAD --verbose

0 comments on commit 11421af

Please sign in to comment.