Skip to content

Commit 582c011

Browse files
committed
build: tell commitlint to ignore release commits instead of disabling Husky during semantic-release
1 parent 6ea2f58 commit 582c011

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ jobs:
3636
- run: npm test
3737
- run: npm run build
3838
- deploy_gh_pages
39-
- run:
40-
command: npx semantic-release
41-
environment:
42-
HUSKY: 0 # disable Husky hooks so commitlint doesn't block semantic-release
39+
- run: npx semantic-release
4340
update_i18n:
4441
executor: node/default # defaults to LTS
4542
steps:

commitlint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional']
2+
extends: ['@commitlint/config-conventional'],
3+
ignores: [message => message.startsWith('chore(release):')]
34
};

0 commit comments

Comments
 (0)