@flit/cdk-pipeline 1.4.1 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flit/cdk-pipeline",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "A highly customizable and extensible CI/CD pipeline intended as alternative to CDK's native CodePipeline",
5
5
  "keywords": [
6
6
  "aws",
package/src/pipeline.ts CHANGED
@@ -73,8 +73,8 @@ export class Pipeline extends Stack {
73
73
  }
74
74
 
75
75
  if (
76
- segments[0].length === 1 &&
77
- segments[0].filter(isPipeline).length !== segments[0].length
76
+ segments[1].length === 1 &&
77
+ segments[1].filter(isPipeline).length !== segments[0].length
78
78
  ) {
79
79
  throw new Error("Second segment must be the pipeline segment");
80
80
  }
@@ -129,7 +129,7 @@ export class StackSegmentConstructed extends SegmentConstructed {
129
129
  ...(buildArtifact
130
130
  ? [
131
131
  new CodeBuildAction({
132
- actionName: "Build",
132
+ actionName: `${this.name}Build`,
133
133
  runOrder: 1,
134
134
  input: props.input,
135
135
  extraInputs: props.extraInputs,
@@ -154,7 +154,7 @@ export class StackSegmentConstructed extends SegmentConstructed {
154
154
  }),
155
155
  }),
156
156
  new PublishAssetsAction(this, "PublishAssets", {
157
- actionName: "PublishAssets",
157
+ actionName: `${this.name}PublishAssets`,
158
158
  runOrder: 2,
159
159
  input: buildArtifact,
160
160
  manifestPath: scope.buildDir,
@@ -162,7 +162,7 @@ export class StackSegmentConstructed extends SegmentConstructed {
162
162
  ]
163
163
  : []),
164
164
  new CloudFormationCreateReplaceChangeSetAction({
165
- actionName: "PrepareChanges",
165
+ actionName: `${this.name}PrepareChanges`,
166
166
  runOrder: buildArtifact ? 3 : 1,
167
167
  stackName: props.stackName ? props.stackName : props.stack.stackName,
168
168
  account: props.stack.account,
@@ -176,13 +176,13 @@ export class StackSegmentConstructed extends SegmentConstructed {
176
176
  ...(props.manualApproval
177
177
  ? [
178
178
  new ManualApprovalAction({
179
- actionName: "ApproveChanges",
179
+ actionName: `${this.name}ApproveChanges`,
180
180
  runOrder: buildArtifact ? 4 : 2,
181
181
  }),
182
182
  ]
183
183
  : []),
184
184
  new CloudFormationExecuteChangeSetAction({
185
- actionName: "ExecuteChanges",
185
+ actionName: `${this.name}ExecuteChanges`,
186
186
  runOrder: props.manualApproval
187
187
  ? buildArtifact
188
188
  ? 5