@codedrifters/configulator 0.0.92 → 0.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.mts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +5 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +5 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -1293,6 +1293,7 @@ interface DeployWorkflowOptions {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
declare class AwsDeployWorkflow extends Component {
|
|
1295
1295
|
project: AwsCdkTypeScriptApp;
|
|
1296
|
+
options: DeployWorkflowOptions;
|
|
1296
1297
|
static of(project: AwsCdkTypeScriptApp, buildWorkflow: BuildWorkflow): AwsDeployWorkflow | undefined;
|
|
1297
1298
|
/**
|
|
1298
1299
|
* The root project for this deploy workflow. Must be a monorepo project.
|
package/lib/index.d.ts
CHANGED
|
@@ -1342,6 +1342,7 @@ interface DeployWorkflowOptions {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
declare class AwsDeployWorkflow extends Component {
|
|
1344
1344
|
project: AwsCdkTypeScriptApp;
|
|
1345
|
+
options: DeployWorkflowOptions;
|
|
1345
1346
|
static of(project: AwsCdkTypeScriptApp, buildWorkflow: BuildWorkflow): AwsDeployWorkflow | undefined;
|
|
1346
1347
|
/**
|
|
1347
1348
|
* The root project for this deploy workflow. Must be a monorepo project.
|
package/lib/index.js
CHANGED
|
@@ -1369,6 +1369,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen9.Componen
|
|
|
1369
1369
|
constructor(project, options = {}) {
|
|
1370
1370
|
super(project);
|
|
1371
1371
|
this.project = project;
|
|
1372
|
+
this.options = options;
|
|
1372
1373
|
/**
|
|
1373
1374
|
* AWS environment type, such as primary or secondary.
|
|
1374
1375
|
*
|
|
@@ -1421,6 +1422,7 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen9.Componen
|
|
|
1421
1422
|
if (branchPattern.includes("*")) {
|
|
1422
1423
|
const prefix = branchPattern.replace(/\*.*$/, "");
|
|
1423
1424
|
conditions.push(`startsWith(github.ref, 'refs/heads/${prefix}')`);
|
|
1425
|
+
conditions.push(`startsWith(github.head_ref, '${prefix}')`);
|
|
1424
1426
|
} else {
|
|
1425
1427
|
conditions.push(`github.ref == 'refs/heads/${branchPattern}'`);
|
|
1426
1428
|
}
|
|
@@ -1568,10 +1570,10 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen9.Componen
|
|
|
1568
1570
|
const branchFilterCondition = this.buildBranchFilterCondition(
|
|
1569
1571
|
target.branches
|
|
1570
1572
|
);
|
|
1571
|
-
const jobCondition = branchFilterCondition ? [
|
|
1572
|
-
"
|
|
1573
|
+
const jobCondition = branchFilterCondition ? "${{ " + [
|
|
1574
|
+
"!needs.build.outputs.self_mutation_happened",
|
|
1573
1575
|
`(${branchFilterCondition})`
|
|
1574
|
-
].join(" && ") : "${{ !needs.build.outputs.self_mutation_happened }}";
|
|
1576
|
+
].join(" && ") + " }}" : "${{ !needs.build.outputs.self_mutation_happened }}";
|
|
1575
1577
|
this.buildWorkflow.addPostBuildJob(deployJobName, {
|
|
1576
1578
|
name: `Deploy ${this.project.name} ${target.awsStageType}/${target.deploymentTargetRole}/${target.account}/${target.region}`,
|
|
1577
1579
|
needs: [
|