Skip to content

Commit f68af3c

Browse files
author
Loïc Mangeonjean
committed
chore: use common semantic-release config and enable commitlint
1 parent 1f92ff2 commit f68af3c

File tree

6 files changed

+16577
-4809
lines changed

6 files changed

+16577
-4809
lines changed

.github/workflows/check_build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ on:
55
- main
66

77
jobs:
8+
lint-commits:
9+
name: Lint commits
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
# we actually need "github.event.pull_request.commits + 1" commit
15+
fetch-depth: 0
16+
- uses: actions/setup-node@v3
17+
- run: npm ci
18+
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
819
check:
920
name: Check build
1021
runs-on: ubuntu-latest

.releaserc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extends:
2+
- '@codingame/semantic-release-config'
3+
branches:
4+
- main

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@codingame/commitlint-config-codingame']
3+
};

0 commit comments

Comments
 (0)