codedang
codedang copied to clipboard
fix(ci): change pnpm cache logic and check style all files
Description
-
setup-pnpm action
:setup-node
가 지원하는 cache 기능을 사용하는 것으로 변경 -
ci
workflow:- dev dependencies만 설치하도록 변경 -> 30초 시간 절약
- prettier은 json 문법 등 다양한 파일들을 style check 하기 때문에 grep 부분 지움
- 이렇게 하면
.prettierignore
과 같은 파일도 prettier가 체크해서 parser 오류가 뜸 ->--ignore-unknown
옵션으로 해결
- 이렇게 하면
dev dependencies만 설치해서 ci 같은 경우엔 1분에서 30초로 시간 절약
close #1858
Before submitting the PR, please make sure you do the following
- [x] Read the Contributing Guidelines
- [x] Read the Contributing Guidelines and follow the Commit Convention
- [x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g.
fixes #123
). - [ ] Ideally, include relevant tests that fail without this PR but pass with it.