From 9b5b3cc2028b933c50c55dc98cf3af733b9f40de Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Tue, 29 Jun 2021 06:50:38 +0530 Subject: [PATCH] ci: enforce commitlint + skip build on tests --- .github/workflows/tests.yml | 1 - .husky/commit-msg | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 .husky/commit-msg diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cdb8184a6..d4317677d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,5 +22,4 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - - run: npm run generate --if-present - run: npm test diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 000000000..fe4c17a22 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install commitlint --edit ""