Skip to content

Commit

Permalink
chore: add commitlint to CI & fix cspell
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jul 29, 2024
1 parent 91f3885 commit 77bac6e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/lint-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
permissions:
contents: read

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: ./.github/actions/prepare
- uses: wagoid/commitlint-github-action@7f0a61df502599e1f1f50880aaa7ec1e2c0592f2 # v6
env:
NODE_PATH: ${{ github.workspace }}/node_modules

name: Validate Commit Messages

on:
pull_request: ~
push:
branches:
- main
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"lint-staged": {
"*": [
"prettier --ignore-unknown --write",
"cspell lint"
"cspell lint --no-must-find-files"
],
"*.md": "markdownlint-cli2",
"*.ts": "eslint --fix"
Expand Down

0 comments on commit 77bac6e

Please sign in to comment.