From 227019c98366dd37726c31642a5198bfe528a26b Mon Sep 17 00:00:00 2001 From: Nick K Date: Mon, 6 Nov 2023 12:28:39 +0300 Subject: [PATCH] Fix for husky disabling for CI --- .github/workflows/release.yml | 2 -- package.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8e5b08..988f5c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,8 +44,6 @@ jobs: - name: Install dependencies run: pnpm i --frozen-lockfile - env: - NO_HUSKY_HOOKS: 1 - name: Create a Pull Request for a new release id: changesets diff --git a/package.json b/package.json index 86c4783..0f1e452 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "ci": "c8 pnpm test && c8 report --reporter=json", "build": "pnpm exec del-cli lib && pnpm exec tsup", "test": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" ava", - "prepare": "node -e 'process.exit(+(process.env.CI === undefined && process.env.NO_HUSKY_HOOKS === undefined));' && husky install || true", + "prepare": "node -e 'process.exit(+(process.env.CI !== undefined || process.env.NO_HUSKY_HOOKS !== undefined));' && husky install || true", "release": "pnpm run build && pnpm exec changeset publish" }, "devDependencies": {