Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Disable husky in CI #28

Closed
1 task done
yujiseok opened this issue Mar 24, 2023 · 3 comments
Closed
1 task done

[bug] Disable husky in CI #28

yujiseok opened this issue Mar 24, 2023 · 3 comments

Comments

@yujiseok
Copy link
Contributor

yujiseok commented Mar 24, 2023

작업 상세 내용

  • 배포시 husky 에러 해결하기

참고 사항

Husky는 prepare: husky install 스크립트를 추천하는데, 이 스크립트에는 깃 훅이 항상 설치 되어야 하는 문제가 있다.
즉 넷리파이의 캐시된 빌드시 깃 훅을 캐시하므로 비활성화 시켜야함

가장 쉬운 방법은 is-ci추가하는 방법

npm install is-ci --save-dev
{
  "scripts": {
    "prepare": "is-ci || husky install"
  }
}

is-ci가 무엇인지 모르지만, 일단 에러를 잡기 위해 추가 해보는 쪽으로


출처

@yujiseok
Copy link
Contributor Author

is-ci

  • Returns true if the current environment is a Continuous Integration server.

@hyorimcho
Copy link
Collaborator

hyorimcho commented Mar 24, 2023

깃 훅이 항상 설치 되어야 하는 것이 문제라면 prepare 대신 postinstall 로 바꿔서 설정 해보시는건 어떨까요?

@yujiseok
Copy link
Contributor Author

해결완

#29 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Issue Done
Development

No branches or pull requests

2 participants