From 428e5d188c7df33870e911b6c3f9581ed0d784b5 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 24 Apr 2022 14:41:45 +0200 Subject: [PATCH] chore: cache yarn deps on netlify (#12725) --- netlify.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netlify.toml b/netlify.toml index 993bd38b2657..ddb2c3fdd54e 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,4 +1,3 @@ - # Note: this file's config override the Netlify UI admin config # production build @@ -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 @@ -19,7 +21,6 @@ [context.deploy-preview] command = "yarn workspace jest-website netlify:ci:deployPreview" - [[plugins]] package = "netlify-plugin-cache" [plugins.inputs]