diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 2ff59db6fd..f09db3ed5f 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -25,6 +25,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_ACT_PAT }} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} + CI_USE_HUSKY: 'true' steps: - name: Checkout uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 diff --git a/lib/prepare.ts b/lib/prepare.ts index 17b6902ebf..bdb481184c 100644 --- a/lib/prepare.ts +++ b/lib/prepare.ts @@ -1,10 +1,8 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-var-requires */ -/* eslint-disable turbo/no-undeclared-env-vars */ -/* eslint-disable import/no-unused-modules */ /* eslint-disable node/no-process-env */ // @ts-ignore -const isCi = process.env.CI !== undefined +const isCi = process.env.CI !== undefined || process.env.CI_USE_HUSKY === 'true' if (!isCi) { require('husky').install() }