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

[Fix] yarn zero install 적용 #314

Merged
merged 12 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/buildTest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:

- name: Set Yarn Version
run: |
yarn set version 4.1.0
yarn set version 4.1.1

- name: Install dependencies
run: yarn install
run: yarn install --immutable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

잘 몰라서 그러는데 --immutable-cache 는 추가하지 않은 이유가 있으신가요?! 🤔
스크린샷 2024-04-03 오후 9 42 32

Copy link
Contributor Author

@loevray loevray Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

댓글로 설명하기엔 살짝 길어서 블로그링크 첨부해드릴게요!

https://velog.io/@loevray/TIL-84-yarnberry-zero-install

느낀점 윗 윗 목차 보시면 됩니다!


  1. 넵! unplugged된 파일을 제외한 모든 의존성 파일이 yarn/cache 폴더에 들어간채 커밋 되었고 pnp.cjs로 패키지 경로와 잘 링크되어있어서 이제 yarn install 할일이 거의 없을거에요
  2. 오 저도 한번 살펴봤던 액션인데 그게 맞는 것 같아요 ㅎㅎ 다음엔 캐싱 적용해보겠습니다
  3. 음 경고문구는 다시한번 보고 구글링 해보겠습니다ㅎㅎ


- name: Test utility functions
run: yarn run test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:

- name: Set Yarn Version
run: |
yarn set version 4.1.0
yarn set version 4.1.1

- name: Install dependencies
run: yarn install
run: yarn install --immutable

- name: Build with yarn
run: yarn run build
Expand Down
13 changes: 11 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,20 @@ dist-ssr
# eslint
.eslintcache

#yarn
.pnp.*
# yarn(zero install)
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# yarn(non zero install)
#.pnp.*
# .yarn/*
# !.yarn/patches
# !.yarn/plugins
# !.yarn/releases
# !.yarn/sdks
# !.yarn/versions
22,288 changes: 22,288 additions & 0 deletions .pnp.cjs

Large diffs are not rendered by default.

Loading