Skip to content

Commit

Permalink
chore: cache yarn deps on netlify (jestjs#12725)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and F3n67u committed May 2, 2022
1 parent 1b7b3a2 commit 428e5d1
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 428e5d1

Please sign in to comment.