ci: enable commitlint on CI

This commit is contained in:
Christopher Willis-Ford 2022-05-20 15:46:18 -07:00
parent 425f07c0e4
commit ccc599d078
4 changed files with 1072 additions and 121 deletions

View file

@ -13,12 +13,14 @@ jobs:
- checkout
- node/install-packages
- run: npm test
- run: npx commitlint --from=`git merge-base HEAD main`
main-job:
<<: *defaults
steps:
- checkout
- node/install-packages
- run: npm test
- run: npx commitlint --from='HEAD~1'
- run: semantic-release
workflows:
version: 2

3
commitlint.config.js Normal file
View file

@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
};

1186
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -49,6 +49,8 @@
"semantic-release": ">=15.13.31"
},
"devDependencies": {
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"commitizen": "^4.0.3",
"cz-conventional-changelog": "^3.0.2",
"semantic-release": "^15.13.31"