Skip to content

Commit

Permalink
fix: skip "first Deployment" check when in CI (#4408)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j authored Nov 25, 2024
1 parent a2b5539 commit 69a78b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cwp-template-aws/cli/deploy/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions packages/cwp-template-aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69a78b3

Please sign in to comment.