Skip to content

Commit

Permalink
use pre-commit hook for crowdin
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Sep 30, 2023
1 parent ce7d133 commit fdb7809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions lib/prepare.ts
Original file line number Diff line number Diff line change
@@ -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()
}

0 comments on commit fdb7809

Please sign in to comment.