Skip to content

Commit

Permalink
Merge pull request #19 from CodinGame/add-commitlint
Browse files Browse the repository at this point in the history
Use common semantic-release config and enable commitlint
  • Loading branch information
CGNonofr authored Dec 5, 2022
2 parents 248ca41 + 3c4e81a commit f18671b
Show file tree
Hide file tree
Showing 6 changed files with 15,335 additions and 4,406 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ on:
- main

jobs:
lint-commits:
name: Lint commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# we actually need "github.event.pull_request.commits + 1" commit
fetch-depth: 0
- uses: actions/setup-node@v3
- run: npm ci
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
check:
name: Check build
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends:
- '@codingame/semantic-release-config'
branches:
- main
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@codingame/commitlint-config-codingame']
};
Loading

0 comments on commit f18671b

Please sign in to comment.