ci: add commitlint and use it on CI

This commit is contained in:
Christopher Willis-Ford 2022-08-25 14:53:06 -07:00
parent 9a21059dde
commit 3317d66c11
4 changed files with 3639 additions and 984 deletions

View file

@ -1,7 +1,8 @@
version: 2.1 version: 2.1
orbs: orbs:
node: circleci/node@5.0.2
browser-tools: circleci/browser-tools@1.2.4 browser-tools: circleci/browser-tools@1.2.4
node: circleci/node@5.0.2
commitlint: conventional-changelog/commitlint@1.0.0
aliases: aliases:
- &defaults - &defaults
docker: docker:
@ -100,6 +101,10 @@ jobs:
npm run i18n:push npm run i18n:push
workflows: workflows:
commitlint:
jobs:
- commitlint/lint:
target-branch: develop
build-test-no-deploy: build-test-no-deploy:
jobs: jobs:
- build-test: - build-test:

3
commitlint.config.js Normal file
View file

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

4611
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -47,6 +47,8 @@
"scratch-render-fonts": "^1.0.0-prerelease.20210401210003" "scratch-render-fonts": "^1.0.0-prerelease.20210401210003"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "17.0.3",
"@commitlint/config-conventional": "17.0.3",
"autoprefixer": "9.7.4", "autoprefixer": "9.7.4",
"babel-cli": "6.26.0", "babel-cli": "6.26.0",
"babel-core": "6.26.3", "babel-core": "6.26.3",