Skip to content

Commit

Permalink
ci: no aws profile and husky fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rehanvandermerwe committed Feb 19, 2024
1 parent 2a1ca9b commit daebca6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"description": "",
"scripts": {
"prepare": "husky",
"validate": "wireit",
"build-src": "wireit",
"cdk:diff:dev": "wireit",
Expand Down
5 changes: 4 additions & 1 deletion scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { hideBin } from "yargs/helpers";
import * as esbuild from "esbuild";
import execa from "execa";
import { config, environments, Environment } from "@config/index";
import * as process from "process";

const baseDir = "../";
const paths = {
Expand Down Expand Up @@ -130,7 +131,9 @@ async function cdkCommand(command: "diff" | "deploy" | "hotswap", environment: E
extraArgs += " --hotswap";
}

await runCommand("cdk", `${command} "**" --profile ${config[environment].aws.profile} ${extraArgs}`, {
if (!process.env.CI) extraArgs += ` --profile ${config[environment].aws.profile}`;

await runCommand("cdk", `${command} "**" ${extraArgs}`, {
cwd: paths.workingDir,
stdout: "inherit",
stderr: "inherit",
Expand Down

0 comments on commit daebca6

Please sign in to comment.