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

chore: cache yarn deps on netlify #12725

Merged
merged 3 commits into from
Apr 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Note: this file's config override the Netlify UI admin config

# production build
Expand All @@ -10,6 +9,9 @@
[build.environment]
NODE_VERSION = "lts/*"
NODE_OPTIONS = "--max_old_space_size=4096"
# default cache
YARN_ENABLE_GLOBAL_CACHE = "true"
YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"

[context.production]
# Do not build the site if there's no site-related changes
Expand All @@ -19,7 +21,6 @@
[context.deploy-preview]
command = "yarn workspace jest-website netlify:ci:deployPreview"


[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
Expand Down