From 732e1e11eb3b4bd96df573cd7a15fe2d31177808 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Fri, 26 Aug 2022 10:34:46 -0700 Subject: [PATCH] ci: use commitlint orb --- .circleci/config.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ffa935d..5b62376 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,6 @@ version: 2.1 orbs: + commitlint: conventional-changelog/commitlint@1.0.0 node: circleci/node@5.0.2 alias: - &defaults @@ -13,17 +14,19 @@ 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: npx semantic-release workflows: version: 2 + commitlint: + jobs: + - commitlint/lint: + target-branch: main branch-workflow: jobs: - branch-job: