Skip to content

Commit 69a78b3

Browse files
authored
fix: skip "first Deployment" check when in CI (#4408)
1 parent a2b5539 commit 69a78b3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/cwp-template-aws/cli/deploy/deploy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const { getInfo } = require("../info");
1010
const sleep = require("../utils/sleep");
1111
const open = require("open");
1212
const ora = require("ora");
13+
const isCI = require("is-ci");
1314

1415
const deployApp = async ({ name, folder, inputs, context, isFirstDeployment }) => {
1516
context.info(`Deploying %s project application...`, name);
@@ -47,7 +48,7 @@ module.exports = async (inputs, context) => {
4748
installed && console.log();
4849

4950
// 2. Check if first deployment.
50-
const isFirstDeployment = !getStackOutput({ folder: "apps/core", env });
51+
const isFirstDeployment = !isCI && !getStackOutput({ folder: "apps/core", env });
5152
if (isFirstDeployment) {
5253
context.info(`Looks like this is your first time deploying the project.`);
5354
context.info(

packages/cwp-template-aws/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"fs-extra": "^11.2.0",
2121
"get-yarn-workspaces": "1.0.2",
2222
"inquirer": "8.2.6",
23+
"is-ci": "^3.0.0",
2324
"load-json-file": "6.2.0",
2425
"lodash": "^4.17.21",
2526
"open": "^8.4.0",

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17247,6 +17247,7 @@ __metadata:
1724717247
fs-extra: ^11.2.0
1724817248
get-yarn-workspaces: 1.0.2
1724917249
inquirer: 8.2.6
17250+
is-ci: ^3.0.0
1725017251
load-json-file: 6.2.0
1725117252
lodash: ^4.17.21
1725217253
open: ^8.4.0

0 commit comments

Comments
 (0)