Skip to content

Commit 317f10b

Browse files
committed
fix: fix shouldBuild method when release cloud build is executed
1 parent ea6eccc commit 317f10b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/controllers/build-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ export class BuildController extends EventEmitter implements IBuildController {
8787
const projectData = this.$projectDataService.getProjectData(buildData.projectDir);
8888
const platformData = this.$platformsDataService.getPlatformData(buildData.platform, projectData);
8989
const outputPath = buildData.outputPath || platformData.getBuildOutputPath(buildData);
90+
const changesInfo = this.$projectChangesService.currentChanges || await this.$projectChangesService.checkForChanges(platformData, projectData, buildData);
9091

91-
if (buildData.release && this.$projectChangesService.currentChanges.hasChanges) {
92+
if (buildData.release && changesInfo.hasChanges) {
9293
return true;
9394
}
9495

95-
const changesInfo = this.$projectChangesService.currentChanges || await this.$projectChangesService.checkForChanges(platformData, projectData, buildData);
9696
if (changesInfo.changesRequireBuild) {
9797
return true;
9898
}

0 commit comments

Comments
 (0)