build: tell commitlint to ignore release commits instead of disabling Husky during semantic-release

This commit is contained in:
Christopher Willis-Ford 2022-08-26 10:21:47 -07:00
parent be7b3a08fa
commit 5bab3f15c8
2 changed files with 3 additions and 5 deletions

View file

@ -59,10 +59,7 @@ jobs:
- store_test_results:
path: test/results
- *deploy-gh-pages
- run:
command: npx semantic-release
environment:
HUSKY: 0 # disable Husky hooks so commitlint doesn't block semantic-release
- run: npx semantic-release
push-translations:
<<: *defaults
steps:

View file

@ -1,3 +1,4 @@
module.exports = {
extends: ['@commitlint/config-conventional']
extends: ['@commitlint/config-conventional'],
ignores: [message => message.startsWith('chore(release):')]
};