diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46ebe3a..26fe190 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 0000000..d6cd234 --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -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