projen-pipelines 0.3.6 → 0.3.8

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/.jsii CHANGED
@@ -1827,6 +1827,120 @@
1827
1827
  "name": "CdkDiffType",
1828
1828
  "symbolId": "src/awscdk/base:CdkDiffType"
1829
1829
  },
1830
+ "projen-pipelines.CdkOutputsSummaryStep": {
1831
+ "assembly": "projen-pipelines",
1832
+ "base": "projen-pipelines.PipelineStep",
1833
+ "docs": {
1834
+ "remarks": "For GitHub Actions: Writes outputs as a markdown table to the job summary.\nFor GitLab CI: Displays outputs in a collapsible section in the job log.\n\nThis step reads the outputs JSON file generated by CDK deploy and formats\nit for display in the respective CI/CD platform.",
1835
+ "stability": "stable",
1836
+ "summary": "A pipeline step that writes CDK stack outputs to the CI/CD job summary."
1837
+ },
1838
+ "fqn": "projen-pipelines.CdkOutputsSummaryStep",
1839
+ "initializer": {
1840
+ "docs": {
1841
+ "stability": "stable"
1842
+ },
1843
+ "locationInModule": {
1844
+ "filename": "src/steps/github-summary.step.ts",
1845
+ "line": 23
1846
+ },
1847
+ "parameters": [
1848
+ {
1849
+ "docs": {
1850
+ "summary": "- The projen project reference."
1851
+ },
1852
+ "name": "project",
1853
+ "type": {
1854
+ "fqn": "projen.Project"
1855
+ }
1856
+ },
1857
+ {
1858
+ "name": "options",
1859
+ "type": {
1860
+ "fqn": "projen-pipelines.CdkOutputsSummaryStepOptions"
1861
+ }
1862
+ }
1863
+ ]
1864
+ },
1865
+ "kind": "class",
1866
+ "locationInModule": {
1867
+ "filename": "src/steps/github-summary.step.ts",
1868
+ "line": 21
1869
+ },
1870
+ "methods": [
1871
+ {
1872
+ "docs": {
1873
+ "stability": "stable",
1874
+ "summary": "Converts the step into a GitHub Actions step configuration."
1875
+ },
1876
+ "locationInModule": {
1877
+ "filename": "src/steps/github-summary.step.ts",
1878
+ "line": 33
1879
+ },
1880
+ "name": "toGithub",
1881
+ "overrides": "projen-pipelines.PipelineStep",
1882
+ "returns": {
1883
+ "type": {
1884
+ "fqn": "projen-pipelines.GithubStepConfig"
1885
+ }
1886
+ }
1887
+ },
1888
+ {
1889
+ "docs": {
1890
+ "remarks": "Creates a collapsible section in the job log to display CDK outputs.",
1891
+ "stability": "stable",
1892
+ "summary": "Converts the step into a GitLab CI step configuration."
1893
+ },
1894
+ "locationInModule": {
1895
+ "filename": "src/steps/github-summary.step.ts",
1896
+ "line": 81
1897
+ },
1898
+ "name": "toGitlab",
1899
+ "overrides": "projen-pipelines.PipelineStep",
1900
+ "returns": {
1901
+ "type": {
1902
+ "fqn": "projen-pipelines.GitlabStepConfig"
1903
+ }
1904
+ }
1905
+ }
1906
+ ],
1907
+ "name": "CdkOutputsSummaryStep",
1908
+ "symbolId": "src/steps/github-summary.step:CdkOutputsSummaryStep"
1909
+ },
1910
+ "projen-pipelines.CdkOutputsSummaryStepOptions": {
1911
+ "assembly": "projen-pipelines",
1912
+ "datatype": true,
1913
+ "docs": {
1914
+ "stability": "stable",
1915
+ "summary": "Options for the CDK outputs summary step."
1916
+ },
1917
+ "fqn": "projen-pipelines.CdkOutputsSummaryStepOptions",
1918
+ "kind": "interface",
1919
+ "locationInModule": {
1920
+ "filename": "src/steps/github-summary.step.ts",
1921
+ "line": 7
1922
+ },
1923
+ "name": "CdkOutputsSummaryStepOptions",
1924
+ "properties": [
1925
+ {
1926
+ "abstract": true,
1927
+ "docs": {
1928
+ "stability": "stable",
1929
+ "summary": "The stage name used to identify the outputs file."
1930
+ },
1931
+ "immutable": true,
1932
+ "locationInModule": {
1933
+ "filename": "src/steps/github-summary.step.ts",
1934
+ "line": 9
1935
+ },
1936
+ "name": "stageName",
1937
+ "type": {
1938
+ "primitive": "string"
1939
+ }
1940
+ }
1941
+ ],
1942
+ "symbolId": "src/steps/github-summary.step:CdkOutputsSummaryStepOptions"
1943
+ },
1830
1944
  "projen-pipelines.CloudFormationOnlyOptions": {
1831
1945
  "assembly": "projen-pipelines",
1832
1946
  "datatype": true,
@@ -4020,7 +4134,7 @@
4020
4134
  },
4021
4135
  "locationInModule": {
4022
4136
  "filename": "src/awscdk/github.ts",
4023
- "line": 73
4137
+ "line": 74
4024
4138
  },
4025
4139
  "parameters": [
4026
4140
  {
@@ -4046,7 +4160,7 @@
4046
4160
  "kind": "class",
4047
4161
  "locationInModule": {
4048
4162
  "filename": "src/awscdk/github.ts",
4049
- "line": 55
4163
+ "line": 56
4050
4164
  },
4051
4165
  "methods": [
4052
4166
  {
@@ -4056,7 +4170,7 @@
4056
4170
  },
4057
4171
  "locationInModule": {
4058
4172
  "filename": "src/awscdk/github.ts",
4059
- "line": 304
4173
+ "line": 306
4060
4174
  },
4061
4175
  "name": "createAssetUpload",
4062
4176
  "parameters": [
@@ -4076,7 +4190,7 @@
4076
4190
  },
4077
4191
  "locationInModule": {
4078
4192
  "filename": "src/awscdk/github.ts",
4079
- "line": 359
4193
+ "line": 361
4080
4194
  },
4081
4195
  "name": "createDeployment",
4082
4196
  "parameters": [
@@ -4105,7 +4219,7 @@
4105
4219
  },
4106
4220
  "locationInModule": {
4107
4221
  "filename": "src/awscdk/github.ts",
4108
- "line": 139
4222
+ "line": 140
4109
4223
  },
4110
4224
  "name": "createFeatureWorkflows",
4111
4225
  "protected": true
@@ -4117,7 +4231,7 @@
4117
4231
  },
4118
4232
  "locationInModule": {
4119
4233
  "filename": "src/awscdk/github.ts",
4120
- "line": 479
4234
+ "line": 483
4121
4235
  },
4122
4236
  "name": "createIndependentDeployment",
4123
4237
  "parameters": [
@@ -4139,7 +4253,7 @@
4139
4253
  },
4140
4254
  "locationInModule": {
4141
4255
  "filename": "src/awscdk/github.ts",
4142
- "line": 132
4256
+ "line": 133
4143
4257
  },
4144
4258
  "name": "engineType",
4145
4259
  "overrides": "projen-pipelines.CDKPipeline",
@@ -4160,7 +4274,7 @@
4160
4274
  "immutable": true,
4161
4275
  "locationInModule": {
4162
4276
  "filename": "src/awscdk/github.ts",
4163
- "line": 58
4277
+ "line": 59
4164
4278
  },
4165
4279
  "name": "needsVersionedArtifacts",
4166
4280
  "type": {
@@ -4173,7 +4287,7 @@
4173
4287
  },
4174
4288
  "locationInModule": {
4175
4289
  "filename": "src/awscdk/github.ts",
4176
- "line": 65
4290
+ "line": 66
4177
4291
  },
4178
4292
  "name": "useGithubPackages",
4179
4293
  "protected": true,
@@ -4187,7 +4301,7 @@
4187
4301
  },
4188
4302
  "locationInModule": {
4189
4303
  "filename": "src/awscdk/github.ts",
4190
- "line": 66
4304
+ "line": 67
4191
4305
  },
4192
4306
  "name": "minNodeVersion",
4193
4307
  "optional": true,
@@ -4213,7 +4327,7 @@
4213
4327
  "kind": "interface",
4214
4328
  "locationInModule": {
4215
4329
  "filename": "src/awscdk/github.ts",
4216
- "line": 17
4330
+ "line": 18
4217
4331
  },
4218
4332
  "name": "GithubCDKPipelineOptions",
4219
4333
  "properties": [
@@ -4227,7 +4341,7 @@
4227
4341
  "immutable": true,
4228
4342
  "locationInModule": {
4229
4343
  "filename": "src/awscdk/github.ts",
4230
- "line": 24
4344
+ "line": 25
4231
4345
  },
4232
4346
  "name": "runnerTags",
4233
4347
  "optional": true,
@@ -4251,7 +4365,7 @@
4251
4365
  "immutable": true,
4252
4366
  "locationInModule": {
4253
4367
  "filename": "src/awscdk/github.ts",
4254
- "line": 36
4368
+ "line": 37
4255
4369
  },
4256
4370
  "name": "useGithubEnvironments",
4257
4371
  "optional": true,
@@ -4270,7 +4384,7 @@
4270
4384
  "immutable": true,
4271
4385
  "locationInModule": {
4272
4386
  "filename": "src/awscdk/github.ts",
4273
- "line": 48
4387
+ "line": 49
4274
4388
  },
4275
4389
  "name": "useGithubEnvironmentsForAssetUpload",
4276
4390
  "optional": true,
@@ -4288,7 +4402,7 @@
4288
4402
  "immutable": true,
4289
4403
  "locationInModule": {
4290
4404
  "filename": "src/awscdk/github.ts",
4291
- "line": 27
4405
+ "line": 28
4292
4406
  },
4293
4407
  "name": "useGithubPackagesForAssembly",
4294
4408
  "optional": true,
@@ -4511,7 +4625,7 @@
4511
4625
  },
4512
4626
  "locationInModule": {
4513
4627
  "filename": "src/awscdk/gitlab.ts",
4514
- "line": 61
4628
+ "line": 62
4515
4629
  },
4516
4630
  "parameters": [
4517
4631
  {
@@ -4537,7 +4651,7 @@
4537
4651
  "kind": "class",
4538
4652
  "locationInModule": {
4539
4653
  "filename": "src/awscdk/gitlab.ts",
4540
- "line": 40
4654
+ "line": 41
4541
4655
  },
4542
4656
  "methods": [
4543
4657
  {
@@ -4548,7 +4662,7 @@
4548
4662
  },
4549
4663
  "locationInModule": {
4550
4664
  "filename": "src/awscdk/gitlab.ts",
4551
- "line": 169
4665
+ "line": 170
4552
4666
  },
4553
4667
  "name": "createAssetUpload",
4554
4668
  "protected": true
@@ -4561,7 +4675,7 @@
4561
4675
  },
4562
4676
  "locationInModule": {
4563
4677
  "filename": "src/awscdk/gitlab.ts",
4564
- "line": 202
4678
+ "line": 203
4565
4679
  },
4566
4680
  "name": "createDeployment",
4567
4681
  "parameters": [
@@ -4583,7 +4697,7 @@
4583
4697
  },
4584
4698
  "locationInModule": {
4585
4699
  "filename": "src/awscdk/gitlab.ts",
4586
- "line": 132
4700
+ "line": 133
4587
4701
  },
4588
4702
  "name": "createFeatureWorkflows",
4589
4703
  "protected": true
@@ -4595,7 +4709,7 @@
4595
4709
  },
4596
4710
  "locationInModule": {
4597
4711
  "filename": "src/awscdk/gitlab.ts",
4598
- "line": 261
4712
+ "line": 263
4599
4713
  },
4600
4714
  "name": "createIndependentDeployment",
4601
4715
  "parameters": [
@@ -4618,7 +4732,7 @@
4618
4732
  },
4619
4733
  "locationInModule": {
4620
4734
  "filename": "src/awscdk/gitlab.ts",
4621
- "line": 142
4735
+ "line": 143
4622
4736
  },
4623
4737
  "name": "createSynth",
4624
4738
  "protected": true
@@ -4629,7 +4743,7 @@
4629
4743
  },
4630
4744
  "locationInModule": {
4631
4745
  "filename": "src/awscdk/gitlab.ts",
4632
- "line": 291
4746
+ "line": 294
4633
4747
  },
4634
4748
  "name": "engineType",
4635
4749
  "overrides": "projen-pipelines.CDKPipeline",
@@ -4647,7 +4761,7 @@
4647
4761
  },
4648
4762
  "locationInModule": {
4649
4763
  "filename": "src/awscdk/gitlab.ts",
4650
- "line": 97
4764
+ "line": 98
4651
4765
  },
4652
4766
  "name": "setupSnippets",
4653
4767
  "protected": true
@@ -4663,7 +4777,7 @@
4663
4777
  "immutable": true,
4664
4778
  "locationInModule": {
4665
4779
  "filename": "src/awscdk/gitlab.ts",
4666
- "line": 49
4780
+ "line": 50
4667
4781
  },
4668
4782
  "name": "config",
4669
4783
  "type": {
@@ -4679,7 +4793,7 @@
4679
4793
  "immutable": true,
4680
4794
  "locationInModule": {
4681
4795
  "filename": "src/awscdk/gitlab.ts",
4682
- "line": 46
4796
+ "line": 47
4683
4797
  },
4684
4798
  "name": "jobImage",
4685
4799
  "type": {
@@ -4695,7 +4809,7 @@
4695
4809
  "immutable": true,
4696
4810
  "locationInModule": {
4697
4811
  "filename": "src/awscdk/gitlab.ts",
4698
- "line": 43
4812
+ "line": 44
4699
4813
  },
4700
4814
  "name": "needsVersionedArtifacts",
4701
4815
  "type": {
@@ -4719,7 +4833,7 @@
4719
4833
  "kind": "interface",
4720
4834
  "locationInModule": {
4721
4835
  "filename": "src/awscdk/gitlab.ts",
4722
- "line": 26
4836
+ "line": 27
4723
4837
  },
4724
4838
  "name": "GitlabCDKPipelineOptions",
4725
4839
  "properties": [
@@ -4732,7 +4846,7 @@
4732
4846
  "immutable": true,
4733
4847
  "locationInModule": {
4734
4848
  "filename": "src/awscdk/gitlab.ts",
4735
- "line": 30
4849
+ "line": 31
4736
4850
  },
4737
4851
  "name": "image",
4738
4852
  "optional": true,
@@ -4749,7 +4863,7 @@
4749
4863
  "immutable": true,
4750
4864
  "locationInModule": {
4751
4865
  "filename": "src/awscdk/gitlab.ts",
4752
- "line": 28
4866
+ "line": 29
4753
4867
  },
4754
4868
  "name": "runnerTags",
4755
4869
  "optional": true,
@@ -4772,7 +4886,7 @@
4772
4886
  "kind": "interface",
4773
4887
  "locationInModule": {
4774
4888
  "filename": "src/awscdk/gitlab.ts",
4775
- "line": 10
4889
+ "line": 11
4776
4890
  },
4777
4891
  "name": "GitlabRunnerTags",
4778
4892
  "properties": [
@@ -4785,7 +4899,7 @@
4785
4899
  "immutable": true,
4786
4900
  "locationInModule": {
4787
4901
  "filename": "src/awscdk/gitlab.ts",
4788
- "line": 16
4902
+ "line": 17
4789
4903
  },
4790
4904
  "name": "assetPublishing",
4791
4905
  "optional": true,
@@ -4807,7 +4921,7 @@
4807
4921
  "immutable": true,
4808
4922
  "locationInModule": {
4809
4923
  "filename": "src/awscdk/gitlab.ts",
4810
- "line": 12
4924
+ "line": 13
4811
4925
  },
4812
4926
  "name": "default",
4813
4927
  "optional": true,
@@ -4829,7 +4943,7 @@
4829
4943
  "immutable": true,
4830
4944
  "locationInModule": {
4831
4945
  "filename": "src/awscdk/gitlab.ts",
4832
- "line": 20
4946
+ "line": 21
4833
4947
  },
4834
4948
  "name": "deployment",
4835
4949
  "optional": true,
@@ -4856,7 +4970,7 @@
4856
4970
  "immutable": true,
4857
4971
  "locationInModule": {
4858
4972
  "filename": "src/awscdk/gitlab.ts",
4859
- "line": 18
4973
+ "line": 19
4860
4974
  },
4861
4975
  "name": "diff",
4862
4976
  "optional": true,
@@ -4883,7 +4997,7 @@
4883
4997
  "immutable": true,
4884
4998
  "locationInModule": {
4885
4999
  "filename": "src/awscdk/gitlab.ts",
4886
- "line": 14
5000
+ "line": 15
4887
5001
  },
4888
5002
  "name": "synth",
4889
5003
  "optional": true,
@@ -8743,6 +8857,6 @@
8743
8857
  "symbolId": "src/versioning/types:VersioningStrategyComponents"
8744
8858
  }
8745
8859
  },
8746
- "version": "0.3.6",
8747
- "fingerprint": "5DKqc/qvzfw2QJHHe4eO8hXAny1M0Wy/28gEO+NBMfA="
8860
+ "version": "0.3.8",
8861
+ "fingerprint": "LzKWh1Ov6K+31G5Xr8sJELvMYdtpdKvzf63Tl+61/hg="
8748
8862
  }
package/API.md CHANGED
@@ -2965,6 +2965,38 @@ public readonly prefix: string;
2965
2965
 
2966
2966
  ---
2967
2967
 
2968
+ ### CdkOutputsSummaryStepOptions <a name="CdkOutputsSummaryStepOptions" id="projen-pipelines.CdkOutputsSummaryStepOptions"></a>
2969
+
2970
+ Options for the CDK outputs summary step.
2971
+
2972
+ #### Initializer <a name="Initializer" id="projen-pipelines.CdkOutputsSummaryStepOptions.Initializer"></a>
2973
+
2974
+ ```typescript
2975
+ import { CdkOutputsSummaryStepOptions } from 'projen-pipelines'
2976
+
2977
+ const cdkOutputsSummaryStepOptions: CdkOutputsSummaryStepOptions = { ... }
2978
+ ```
2979
+
2980
+ #### Properties <a name="Properties" id="Properties"></a>
2981
+
2982
+ | **Name** | **Type** | **Description** |
2983
+ | --- | --- | --- |
2984
+ | <code><a href="#projen-pipelines.CdkOutputsSummaryStepOptions.property.stageName">stageName</a></code> | <code>string</code> | The stage name used to identify the outputs file. |
2985
+
2986
+ ---
2987
+
2988
+ ##### `stageName`<sup>Required</sup> <a name="stageName" id="projen-pipelines.CdkOutputsSummaryStepOptions.property.stageName"></a>
2989
+
2990
+ ```typescript
2991
+ public readonly stageName: string;
2992
+ ```
2993
+
2994
+ - *Type:* string
2995
+
2996
+ The stage name used to identify the outputs file.
2997
+
2998
+ ---
2999
+
2968
3000
  ### CDKPipelineOptions <a name="CDKPipelineOptions" id="projen-pipelines.CDKPipelineOptions"></a>
2969
3001
 
2970
3002
  The CDKPipelineOptions interface is designed to provide configuration options for a CDK (Cloud Development Kit) pipeline.
@@ -6510,6 +6542,97 @@ Should be implemented by subclasses.
6510
6542
 
6511
6543
 
6512
6544
 
6545
+ ### CdkOutputsSummaryStep <a name="CdkOutputsSummaryStep" id="projen-pipelines.CdkOutputsSummaryStep"></a>
6546
+
6547
+ A pipeline step that writes CDK stack outputs to the CI/CD job summary.
6548
+
6549
+ For GitHub Actions: Writes outputs as a markdown table to the job summary.
6550
+ For GitLab CI: Displays outputs in a collapsible section in the job log.
6551
+
6552
+ This step reads the outputs JSON file generated by CDK deploy and formats
6553
+ it for display in the respective CI/CD platform.
6554
+
6555
+ #### Initializers <a name="Initializers" id="projen-pipelines.CdkOutputsSummaryStep.Initializer"></a>
6556
+
6557
+ ```typescript
6558
+ import { CdkOutputsSummaryStep } from 'projen-pipelines'
6559
+
6560
+ new CdkOutputsSummaryStep(project: Project, options: CdkOutputsSummaryStepOptions)
6561
+ ```
6562
+
6563
+ | **Name** | **Type** | **Description** |
6564
+ | --- | --- | --- |
6565
+ | <code><a href="#projen-pipelines.CdkOutputsSummaryStep.Initializer.parameter.project">project</a></code> | <code>projen.Project</code> | - The projen project reference. |
6566
+ | <code><a href="#projen-pipelines.CdkOutputsSummaryStep.Initializer.parameter.options">options</a></code> | <code><a href="#projen-pipelines.CdkOutputsSummaryStepOptions">CdkOutputsSummaryStepOptions</a></code> | *No description.* |
6567
+
6568
+ ---
6569
+
6570
+ ##### `project`<sup>Required</sup> <a name="project" id="projen-pipelines.CdkOutputsSummaryStep.Initializer.parameter.project"></a>
6571
+
6572
+ - *Type:* projen.Project
6573
+
6574
+ The projen project reference.
6575
+
6576
+ ---
6577
+
6578
+ ##### `options`<sup>Required</sup> <a name="options" id="projen-pipelines.CdkOutputsSummaryStep.Initializer.parameter.options"></a>
6579
+
6580
+ - *Type:* <a href="#projen-pipelines.CdkOutputsSummaryStepOptions">CdkOutputsSummaryStepOptions</a>
6581
+
6582
+ ---
6583
+
6584
+ #### Methods <a name="Methods" id="Methods"></a>
6585
+
6586
+ | **Name** | **Description** |
6587
+ | --- | --- |
6588
+ | <code><a href="#projen-pipelines.CdkOutputsSummaryStep.toBash">toBash</a></code> | Generates a configuration for a bash script step. |
6589
+ | <code><a href="#projen-pipelines.CdkOutputsSummaryStep.toCodeCatalyst">toCodeCatalyst</a></code> | Generates a configuration for a CodeCatalyst Actions step. |
6590
+ | <code><a href="#projen-pipelines.CdkOutputsSummaryStep.toGithub">toGithub</a></code> | Converts the step into a GitHub Actions step configuration. |
6591
+ | <code><a href="#projen-pipelines.CdkOutputsSummaryStep.toGitlab">toGitlab</a></code> | Converts the step into a GitLab CI step configuration. |
6592
+
6593
+ ---
6594
+
6595
+ ##### `toBash` <a name="toBash" id="projen-pipelines.CdkOutputsSummaryStep.toBash"></a>
6596
+
6597
+ ```typescript
6598
+ public toBash(): BashStepConfig
6599
+ ```
6600
+
6601
+ Generates a configuration for a bash script step.
6602
+
6603
+ Should be implemented by subclasses.
6604
+
6605
+ ##### `toCodeCatalyst` <a name="toCodeCatalyst" id="projen-pipelines.CdkOutputsSummaryStep.toCodeCatalyst"></a>
6606
+
6607
+ ```typescript
6608
+ public toCodeCatalyst(): CodeCatalystStepConfig
6609
+ ```
6610
+
6611
+ Generates a configuration for a CodeCatalyst Actions step.
6612
+
6613
+ Should be implemented by subclasses.
6614
+
6615
+ ##### `toGithub` <a name="toGithub" id="projen-pipelines.CdkOutputsSummaryStep.toGithub"></a>
6616
+
6617
+ ```typescript
6618
+ public toGithub(): GithubStepConfig
6619
+ ```
6620
+
6621
+ Converts the step into a GitHub Actions step configuration.
6622
+
6623
+ ##### `toGitlab` <a name="toGitlab" id="projen-pipelines.CdkOutputsSummaryStep.toGitlab"></a>
6624
+
6625
+ ```typescript
6626
+ public toGitlab(): GitlabStepConfig
6627
+ ```
6628
+
6629
+ Converts the step into a GitLab CI step configuration.
6630
+
6631
+ Creates a collapsible section in the job log to display CDK outputs.
6632
+
6633
+
6634
+
6635
+
6513
6636
  ### CloudFormationOutput <a name="CloudFormationOutput" id="projen-pipelines.CloudFormationOutput"></a>
6514
6637
 
6515
6638
  CloudFormation output configuration.