Skip to content

Commit

Permalink
ci(github): modularize workflow commitlint.yml from build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Oct 15, 2023
1 parent ad6dc7b commit 6c278b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,13 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
run: npm install

- name: Lint commit message
run: npx commitlint --from=HEAD~1

- name: Run ESLint
run: npm run lint

Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: commitlint
on: [push, pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
run: npm install

- name: Lint commit message
run: npx commitlint --from=HEAD~1

0 comments on commit 6c278b8

Please sign in to comment.