Skip to content

.yarn cache and pnpm? #5792

Answered by clemyan
hanseltime asked this question in Q&A
Oct 14, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

In that case, yes, you will need to run yarn install to run the postinstall scripts anyway.

Your use case sounds reasonable enough to me, though I still think CI cache is a better solution.

I assume your repo lives in a private environment (where only trusted developers can submit PRs). Otherwise, you would be vulnerable to cache and lockfile poisoning attacks. In such an untrusted environment, it is recommended to check the cached zips and lockfile against the registry anyway, negating any saving made.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hanseltime
Comment options

@clemyan
Comment options

Answer selected by hanseltime
@hanseltime
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants