diff --git a/packages/cwp-template-aws/cli/deploy/deploy.js b/packages/cwp-template-aws/cli/deploy/deploy.js index e85faba9861..186f4b9a514 100644 --- a/packages/cwp-template-aws/cli/deploy/deploy.js +++ b/packages/cwp-template-aws/cli/deploy/deploy.js @@ -10,6 +10,7 @@ const { getInfo } = require("../info"); const sleep = require("../utils/sleep"); const open = require("open"); const ora = require("ora"); +const isCI = require("is-ci"); const deployApp = async ({ name, folder, inputs, context, isFirstDeployment }) => { context.info(`Deploying %s project application...`, name); @@ -47,7 +48,7 @@ module.exports = async (inputs, context) => { installed && console.log(); // 2. Check if first deployment. - const isFirstDeployment = !getStackOutput({ folder: "apps/core", env }); + const isFirstDeployment = !isCI && !getStackOutput({ folder: "apps/core", env }); if (isFirstDeployment) { context.info(`Looks like this is your first time deploying the project.`); context.info( diff --git a/packages/cwp-template-aws/package.json b/packages/cwp-template-aws/package.json index d7cf89c3c15..38aef5dca63 100644 --- a/packages/cwp-template-aws/package.json +++ b/packages/cwp-template-aws/package.json @@ -20,6 +20,7 @@ "fs-extra": "^11.2.0", "get-yarn-workspaces": "1.0.2", "inquirer": "8.2.6", + "is-ci": "^3.0.0", "load-json-file": "6.2.0", "lodash": "^4.17.21", "open": "^8.4.0", diff --git a/yarn.lock b/yarn.lock index f83265e629e..e052fcca3e4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17247,6 +17247,7 @@ __metadata: fs-extra: ^11.2.0 get-yarn-workspaces: 1.0.2 inquirer: 8.2.6 + is-ci: ^3.0.0 load-json-file: 6.2.0 lodash: ^4.17.21 open: ^8.4.0