From 9deae16322d04538839c46980fde679dfae087a2 Mon Sep 17 00:00:00 2001 From: Bronley Plumb Date: Fri, 16 Sep 2022 08:43:56 -0400 Subject: [PATCH] Clone all projects in releases before filtering. --- scripts/releases.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/releases.ts b/scripts/releases.ts index 8d55704c..69597771 100644 --- a/scripts/releases.ts +++ b/scripts/releases.ts @@ -21,6 +21,12 @@ class Runner { options.groups ??= []; + //clone all projects + console.log('Cloning projects'); + for (const project of this.projects) { + this.cloneProject(project); + } + const projects = this.projects //filter by group .filter(x => options.groups.length === 0 || x?.groups?.find(g => options.groups.includes(g))) @@ -29,12 +35,6 @@ class Runner { console.log('Selected projects:', projects.map(x => x.name)); - //clone all projects - console.log('Cloning projects'); - for (const project of projects) { - this.cloneProject(project); - } - for (const project of projects) { console.log(''); await this.processProject(project);