From 14d25f3520c1079bbb8adb4c561ac8ffd5f5c48c Mon Sep 17 00:00:00 2001 From: dc7290 Date: Thu, 19 May 2022 22:00:51 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20Github=20Actions:=20Releas?= =?UTF-8?q?e=20does=20not=20run=20git-cz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/prepare-commit-msg | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index 940eefd0..f582946b 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,6 @@ #!/bin/sh . "$(dirname -- "$0")/_/husky.sh" -exec < /dev/tty && yarn git-cz --hook || true +[ -z "${SKIP_BY_SEMANTIC_RELEASE}" ] && { + exec < /dev/tty && yarn git-cz --hook +} || true diff --git a/package.json b/package.json index 9597566f..9619b4b8 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "test:cli:watch": "jest --watch __tests__/cli/**/*.test.ts", "test:components": "jest __tests__/components/**/*.test.tsx", "test:components:watch": "jest --watch __tests__/components/**/*.test.tsx", - "semantic-release": "semantic-release" + "semantic-release": "SKIP_BY_SEMANTIC_RELEASE=true semantic-release" }, "lint-staged": { "*.{ts,tsx}": [