Skip to content

Commit

Permalink
build: tell commitlint to ignore release commits instead of disabling…
Browse files Browse the repository at this point in the history
… Husky during semantic-release
  • Loading branch information
cwillisf committed Aug 26, 2022
1 parent 6ea2f58 commit 582c011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ jobs:
- run: npm test
- run: npm run build
- 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
update_i18n:
executor: node/default # defaults to LTS
steps:
Expand Down
3 changes: 2 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
extends: ['@commitlint/config-conventional']
extends: ['@commitlint/config-conventional'],
ignores: [message => message.startsWith('chore(release):')]
};

0 comments on commit 582c011

Please sign in to comment.