Skip to content

Commit

Permalink
build: add commitlint github action check
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-a-young committed Aug 11, 2023
1 parent a3f039a commit 26485d6
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 80 deletions.
4 changes: 0 additions & 4 deletions .commitlintrc.json

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint Commit Messages
on: [pull_request]

jobs:
commitlint:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: '16'

- run: yarn install --immutable

- uses: wagoid/commitlint-github-action@v4
env:
NODE_PATH: ${{ github.workspace }}/node_modules
4 changes: 4 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'],
rules: {},
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
},
"devDependencies": {
"@babel/preset-react": "^7.18.6",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@commitlint/config-nx-scopes": "^17.0.0",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@commitlint/config-nx-scopes": "^17.6.4",
"@jscutlery/semver": "^2.29.3",
"@mui/lab": "^5.0.0-alpha.121",
"@mui/x-data-grid": "^6.10.1",
Expand Down
Loading

0 comments on commit 26485d6

Please sign in to comment.