From abb8945d8db95db13f49674fe75752b9115ffe5f Mon Sep 17 00:00:00 2001 From: Tyler Han Date: Thu, 25 Apr 2024 18:41:56 -0400 Subject: [PATCH] fix: clear turborepo cache (IN-1002) (#219) * fix: clear cache (IN-1002) * fix: rearrange stuf --- src/commands/monorepo/monorepo_save_cache.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/monorepo/monorepo_save_cache.yml b/src/commands/monorepo/monorepo_save_cache.yml index ca72bdf7..3147b06e 100644 --- a/src/commands/monorepo/monorepo_save_cache.yml +++ b/src/commands/monorepo/monorepo_save_cache.yml @@ -46,10 +46,10 @@ steps: condition: equal: ["turborepo", << parameters.monorepo_engine >>] steps: - - persist_to_workspace: - root: "." - paths: - - node_modules/.cache/turbo + - run: + # deletes all files in the cache directory that are older than 7 days, only mtime is persisted properly + name: Clean cache directory + command: find node_modules/.cache/turbo -type f -mtime +7 -delete - save_cache: paths: - node_modules/.cache/turbo