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

Explicitly use .yarn directory as cache directory #1090

Merged
merged 1 commit into from
Oct 4, 2020
Merged

Explicitly use .yarn directory as cache directory #1090

merged 1 commit into from
Oct 4, 2020

Conversation

RealOrangeOne
Copy link
Contributor

This saves caching the whole of node_modules, but still provides a performance improvement to builds, as an offline cache can be used.

The default cache location isn't persisted by GitLab

This saves caching the whole of `node_modules`, but still provides a performance improvement to builds, as an offline cache can be used.

The default cache location isn't persisted by GitLab
@RealOrangeOne
Copy link
Contributor Author

Looks like the deploy fails are unrelated to this PR:

CROWDIN_API_KEY is undefined.

@Haroenv
Copy link
Member

Haroenv commented Oct 3, 2020

I'm not sure why you're suggesting not to cache node_modes, not having to fetch for subsequent builds still seems useful to me

@RealOrangeOne
Copy link
Contributor Author

In my experience node_modules is almost always larger than the download cache, and so there's more to cache, more to change, which slows down builds.

This also matches how GitLab recommend caching for NPM directly: https://docs.gitlab.com/ee/ci/caching/#caching-nodejs-dependencies

@Haroenv Haroenv merged commit 9124fd9 into yarnpkg:master Oct 4, 2020
@RealOrangeOne RealOrangeOne deleted the patch-1 branch October 4, 2020 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants