projen 0.95.1__py3-none-any.whl → 0.95.3__py3-none-any.whl
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.
Potentially problematic release.
This version of projen might be problematic. Click here for more details.
- projen/_jsii/__init__.py +1 -1
- projen/_jsii/projen@0.95.3.jsii.tgz +0 -0
- projen/awscdk/__init__.py +144 -0
- projen/cdk/__init__.py +229 -0
- projen/cdk8s/__init__.py +96 -0
- projen/cdktf/__init__.py +48 -0
- projen/github/__init__.py +46 -2
- projen/javascript/__init__.py +95 -0
- projen/javascript/biome_config/__init__.py +98 -4
- projen/release/__init__.py +528 -15
- projen/typescript/__init__.py +102 -0
- projen/web/__init__.py +192 -0
- {projen-0.95.1.data → projen-0.95.3.data}/scripts/projen +1 -1
- {projen-0.95.1.dist-info → projen-0.95.3.dist-info}/METADATA +1 -1
- projen-0.95.3.dist-info/RECORD +27 -0
- projen/_jsii/projen@0.95.1.jsii.tgz +0 -0
- projen-0.95.1.dist-info/RECORD +0 -27
- {projen-0.95.1.dist-info → projen-0.95.3.dist-info}/LICENSE +0 -0
- {projen-0.95.1.dist-info → projen-0.95.3.dist-info}/WHEEL +0 -0
- {projen-0.95.1.dist-info → projen-0.95.3.dist-info}/top_level.txt +0 -0
projen/cdk8s/__init__.py
CHANGED
|
@@ -2616,6 +2616,7 @@ class Cdk8sTypeScriptApp(
|
|
|
2616
2616
|
npm_registry: typing.Optional[builtins.str] = None,
|
|
2617
2617
|
npm_registry_url: typing.Optional[builtins.str] = None,
|
|
2618
2618
|
npm_token_secret: typing.Optional[builtins.str] = None,
|
|
2619
|
+
npm_trusted_publishing: typing.Optional[builtins.bool] = None,
|
|
2619
2620
|
package_manager: typing.Optional[_NodePackageManager_3eb53bf6] = None,
|
|
2620
2621
|
package_name: typing.Optional[builtins.str] = None,
|
|
2621
2622
|
peer_dependency_options: typing.Optional[typing.Union[_PeerDependencyOptions_99d7d493, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -2639,6 +2640,7 @@ class Cdk8sTypeScriptApp(
|
|
|
2639
2640
|
publish_tasks: typing.Optional[builtins.bool] = None,
|
|
2640
2641
|
releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
|
|
2641
2642
|
release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2643
|
+
release_environment: typing.Optional[builtins.str] = None,
|
|
2642
2644
|
release_every_commit: typing.Optional[builtins.bool] = None,
|
|
2643
2645
|
release_failure_issue: typing.Optional[builtins.bool] = None,
|
|
2644
2646
|
release_failure_issue_label: typing.Optional[builtins.str] = None,
|
|
@@ -2782,6 +2784,7 @@ class Cdk8sTypeScriptApp(
|
|
|
2782
2784
|
:param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
|
|
2783
2785
|
:param npm_registry_url: (experimental) The base URL of the npm package registry. Must be a URL (e.g. start with "https://" or "http://") Default: "https://registry.npmjs.org"
|
|
2784
2786
|
:param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
|
|
2787
|
+
:param npm_trusted_publishing: (experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work. Default: - false
|
|
2785
2788
|
:param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
|
|
2786
2789
|
:param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
|
|
2787
2790
|
:param peer_dependency_options: (experimental) Options for ``peerDeps``.
|
|
@@ -2805,6 +2808,7 @@ class Cdk8sTypeScriptApp(
|
|
|
2805
2808
|
:param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
|
|
2806
2809
|
:param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
|
|
2807
2810
|
:param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
|
|
2811
|
+
:param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
|
|
2808
2812
|
:param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
|
|
2809
2813
|
:param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
|
|
2810
2814
|
:param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
|
|
@@ -2950,6 +2954,7 @@ class Cdk8sTypeScriptApp(
|
|
|
2950
2954
|
npm_registry=npm_registry,
|
|
2951
2955
|
npm_registry_url=npm_registry_url,
|
|
2952
2956
|
npm_token_secret=npm_token_secret,
|
|
2957
|
+
npm_trusted_publishing=npm_trusted_publishing,
|
|
2953
2958
|
package_manager=package_manager,
|
|
2954
2959
|
package_name=package_name,
|
|
2955
2960
|
peer_dependency_options=peer_dependency_options,
|
|
@@ -2973,6 +2978,7 @@ class Cdk8sTypeScriptApp(
|
|
|
2973
2978
|
publish_tasks=publish_tasks,
|
|
2974
2979
|
releasable_commits=releasable_commits,
|
|
2975
2980
|
release_branches=release_branches,
|
|
2981
|
+
release_environment=release_environment,
|
|
2976
2982
|
release_every_commit=release_every_commit,
|
|
2977
2983
|
release_failure_issue=release_failure_issue,
|
|
2978
2984
|
release_failure_issue_label=release_failure_issue_label,
|
|
@@ -3079,6 +3085,7 @@ class Cdk8sTypeScriptApp(
|
|
|
3079
3085
|
"npm_registry": "npmRegistry",
|
|
3080
3086
|
"npm_registry_url": "npmRegistryUrl",
|
|
3081
3087
|
"npm_token_secret": "npmTokenSecret",
|
|
3088
|
+
"npm_trusted_publishing": "npmTrustedPublishing",
|
|
3082
3089
|
"package_manager": "packageManager",
|
|
3083
3090
|
"package_name": "packageName",
|
|
3084
3091
|
"peer_dependency_options": "peerDependencyOptions",
|
|
@@ -3102,6 +3109,7 @@ class Cdk8sTypeScriptApp(
|
|
|
3102
3109
|
"publish_tasks": "publishTasks",
|
|
3103
3110
|
"releasable_commits": "releasableCommits",
|
|
3104
3111
|
"release_branches": "releaseBranches",
|
|
3112
|
+
"release_environment": "releaseEnvironment",
|
|
3105
3113
|
"release_every_commit": "releaseEveryCommit",
|
|
3106
3114
|
"release_failure_issue": "releaseFailureIssue",
|
|
3107
3115
|
"release_failure_issue_label": "releaseFailureIssueLabel",
|
|
@@ -3252,6 +3260,7 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
3252
3260
|
npm_registry: typing.Optional[builtins.str] = None,
|
|
3253
3261
|
npm_registry_url: typing.Optional[builtins.str] = None,
|
|
3254
3262
|
npm_token_secret: typing.Optional[builtins.str] = None,
|
|
3263
|
+
npm_trusted_publishing: typing.Optional[builtins.bool] = None,
|
|
3255
3264
|
package_manager: typing.Optional[_NodePackageManager_3eb53bf6] = None,
|
|
3256
3265
|
package_name: typing.Optional[builtins.str] = None,
|
|
3257
3266
|
peer_dependency_options: typing.Optional[typing.Union[_PeerDependencyOptions_99d7d493, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -3275,6 +3284,7 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
3275
3284
|
publish_tasks: typing.Optional[builtins.bool] = None,
|
|
3276
3285
|
releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
|
|
3277
3286
|
release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3287
|
+
release_environment: typing.Optional[builtins.str] = None,
|
|
3278
3288
|
release_every_commit: typing.Optional[builtins.bool] = None,
|
|
3279
3289
|
release_failure_issue: typing.Optional[builtins.bool] = None,
|
|
3280
3290
|
release_failure_issue_label: typing.Optional[builtins.str] = None,
|
|
@@ -3418,6 +3428,7 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
3418
3428
|
:param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
|
|
3419
3429
|
:param npm_registry_url: (experimental) The base URL of the npm package registry. Must be a URL (e.g. start with "https://" or "http://") Default: "https://registry.npmjs.org"
|
|
3420
3430
|
:param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
|
|
3431
|
+
:param npm_trusted_publishing: (experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work. Default: - false
|
|
3421
3432
|
:param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
|
|
3422
3433
|
:param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
|
|
3423
3434
|
:param peer_dependency_options: (experimental) Options for ``peerDeps``.
|
|
@@ -3441,6 +3452,7 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
3441
3452
|
:param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
|
|
3442
3453
|
:param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
|
|
3443
3454
|
:param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
|
|
3455
|
+
:param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
|
|
3444
3456
|
:param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
|
|
3445
3457
|
:param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
|
|
3446
3458
|
:param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
|
|
@@ -3651,6 +3663,7 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
3651
3663
|
check_type(argname="argument npm_registry", value=npm_registry, expected_type=type_hints["npm_registry"])
|
|
3652
3664
|
check_type(argname="argument npm_registry_url", value=npm_registry_url, expected_type=type_hints["npm_registry_url"])
|
|
3653
3665
|
check_type(argname="argument npm_token_secret", value=npm_token_secret, expected_type=type_hints["npm_token_secret"])
|
|
3666
|
+
check_type(argname="argument npm_trusted_publishing", value=npm_trusted_publishing, expected_type=type_hints["npm_trusted_publishing"])
|
|
3654
3667
|
check_type(argname="argument package_manager", value=package_manager, expected_type=type_hints["package_manager"])
|
|
3655
3668
|
check_type(argname="argument package_name", value=package_name, expected_type=type_hints["package_name"])
|
|
3656
3669
|
check_type(argname="argument peer_dependency_options", value=peer_dependency_options, expected_type=type_hints["peer_dependency_options"])
|
|
@@ -3674,6 +3687,7 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
3674
3687
|
check_type(argname="argument publish_tasks", value=publish_tasks, expected_type=type_hints["publish_tasks"])
|
|
3675
3688
|
check_type(argname="argument releasable_commits", value=releasable_commits, expected_type=type_hints["releasable_commits"])
|
|
3676
3689
|
check_type(argname="argument release_branches", value=release_branches, expected_type=type_hints["release_branches"])
|
|
3690
|
+
check_type(argname="argument release_environment", value=release_environment, expected_type=type_hints["release_environment"])
|
|
3677
3691
|
check_type(argname="argument release_every_commit", value=release_every_commit, expected_type=type_hints["release_every_commit"])
|
|
3678
3692
|
check_type(argname="argument release_failure_issue", value=release_failure_issue, expected_type=type_hints["release_failure_issue"])
|
|
3679
3693
|
check_type(argname="argument release_failure_issue_label", value=release_failure_issue_label, expected_type=type_hints["release_failure_issue_label"])
|
|
@@ -3874,6 +3888,8 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
3874
3888
|
self._values["npm_registry_url"] = npm_registry_url
|
|
3875
3889
|
if npm_token_secret is not None:
|
|
3876
3890
|
self._values["npm_token_secret"] = npm_token_secret
|
|
3891
|
+
if npm_trusted_publishing is not None:
|
|
3892
|
+
self._values["npm_trusted_publishing"] = npm_trusted_publishing
|
|
3877
3893
|
if package_manager is not None:
|
|
3878
3894
|
self._values["package_manager"] = package_manager
|
|
3879
3895
|
if package_name is not None:
|
|
@@ -3920,6 +3936,8 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
3920
3936
|
self._values["releasable_commits"] = releasable_commits
|
|
3921
3937
|
if release_branches is not None:
|
|
3922
3938
|
self._values["release_branches"] = release_branches
|
|
3939
|
+
if release_environment is not None:
|
|
3940
|
+
self._values["release_environment"] = release_environment
|
|
3923
3941
|
if release_every_commit is not None:
|
|
3924
3942
|
self._values["release_every_commit"] = release_every_commit
|
|
3925
3943
|
if release_failure_issue is not None:
|
|
@@ -4802,6 +4820,17 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
4802
4820
|
result = self._values.get("npm_token_secret")
|
|
4803
4821
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
4804
4822
|
|
|
4823
|
+
@builtins.property
|
|
4824
|
+
def npm_trusted_publishing(self) -> typing.Optional[builtins.bool]:
|
|
4825
|
+
'''(experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work.
|
|
4826
|
+
|
|
4827
|
+
:default: - false
|
|
4828
|
+
|
|
4829
|
+
:stability: experimental
|
|
4830
|
+
'''
|
|
4831
|
+
result = self._values.get("npm_trusted_publishing")
|
|
4832
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
4833
|
+
|
|
4805
4834
|
@builtins.property
|
|
4806
4835
|
def package_manager(self) -> typing.Optional[_NodePackageManager_3eb53bf6]:
|
|
4807
4836
|
'''(experimental) The Node Package Manager used to execute scripts.
|
|
@@ -5121,6 +5150,23 @@ class Cdk8sTypeScriptAppOptions(
|
|
|
5121
5150
|
result = self._values.get("release_branches")
|
|
5122
5151
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, _BranchOptions_13663d08]], result)
|
|
5123
5152
|
|
|
5153
|
+
@builtins.property
|
|
5154
|
+
def release_environment(self) -> typing.Optional[builtins.str]:
|
|
5155
|
+
'''(experimental) The GitHub Actions environment used for the release.
|
|
5156
|
+
|
|
5157
|
+
This can be used to add an explicit approval step to the release
|
|
5158
|
+
or limit who can initiate a release through environment protection rules.
|
|
5159
|
+
|
|
5160
|
+
When multiple artifacts are released, the environment can be overwritten
|
|
5161
|
+
on a per artifact basis.
|
|
5162
|
+
|
|
5163
|
+
:default: - no environment used, unless set at the artifact level
|
|
5164
|
+
|
|
5165
|
+
:stability: experimental
|
|
5166
|
+
'''
|
|
5167
|
+
result = self._values.get("release_environment")
|
|
5168
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
5169
|
+
|
|
5124
5170
|
@builtins.property
|
|
5125
5171
|
def release_every_commit(self) -> typing.Optional[builtins.bool]:
|
|
5126
5172
|
'''(deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``.
|
|
@@ -6268,6 +6314,7 @@ class ConstructLibraryCdk8s(
|
|
|
6268
6314
|
npm_registry: typing.Optional[builtins.str] = None,
|
|
6269
6315
|
npm_registry_url: typing.Optional[builtins.str] = None,
|
|
6270
6316
|
npm_token_secret: typing.Optional[builtins.str] = None,
|
|
6317
|
+
npm_trusted_publishing: typing.Optional[builtins.bool] = None,
|
|
6271
6318
|
package_manager: typing.Optional[_NodePackageManager_3eb53bf6] = None,
|
|
6272
6319
|
package_name: typing.Optional[builtins.str] = None,
|
|
6273
6320
|
peer_dependency_options: typing.Optional[typing.Union[_PeerDependencyOptions_99d7d493, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -6291,6 +6338,7 @@ class ConstructLibraryCdk8s(
|
|
|
6291
6338
|
publish_tasks: typing.Optional[builtins.bool] = None,
|
|
6292
6339
|
releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
|
|
6293
6340
|
release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6341
|
+
release_environment: typing.Optional[builtins.str] = None,
|
|
6294
6342
|
release_every_commit: typing.Optional[builtins.bool] = None,
|
|
6295
6343
|
release_failure_issue: typing.Optional[builtins.bool] = None,
|
|
6296
6344
|
release_failure_issue_label: typing.Optional[builtins.str] = None,
|
|
@@ -6443,6 +6491,7 @@ class ConstructLibraryCdk8s(
|
|
|
6443
6491
|
:param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
|
|
6444
6492
|
:param npm_registry_url: (experimental) The base URL of the npm package registry. Must be a URL (e.g. start with "https://" or "http://") Default: "https://registry.npmjs.org"
|
|
6445
6493
|
:param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
|
|
6494
|
+
:param npm_trusted_publishing: (experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work. Default: - false
|
|
6446
6495
|
:param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
|
|
6447
6496
|
:param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
|
|
6448
6497
|
:param peer_dependency_options: (experimental) Options for ``peerDeps``.
|
|
@@ -6466,6 +6515,7 @@ class ConstructLibraryCdk8s(
|
|
|
6466
6515
|
:param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
|
|
6467
6516
|
:param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
|
|
6468
6517
|
:param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
|
|
6518
|
+
:param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
|
|
6469
6519
|
:param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
|
|
6470
6520
|
:param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
|
|
6471
6521
|
:param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
|
|
@@ -6620,6 +6670,7 @@ class ConstructLibraryCdk8s(
|
|
|
6620
6670
|
npm_registry=npm_registry,
|
|
6621
6671
|
npm_registry_url=npm_registry_url,
|
|
6622
6672
|
npm_token_secret=npm_token_secret,
|
|
6673
|
+
npm_trusted_publishing=npm_trusted_publishing,
|
|
6623
6674
|
package_manager=package_manager,
|
|
6624
6675
|
package_name=package_name,
|
|
6625
6676
|
peer_dependency_options=peer_dependency_options,
|
|
@@ -6643,6 +6694,7 @@ class ConstructLibraryCdk8s(
|
|
|
6643
6694
|
publish_tasks=publish_tasks,
|
|
6644
6695
|
releasable_commits=releasable_commits,
|
|
6645
6696
|
release_branches=release_branches,
|
|
6697
|
+
release_environment=release_environment,
|
|
6646
6698
|
release_every_commit=release_every_commit,
|
|
6647
6699
|
release_failure_issue=release_failure_issue,
|
|
6648
6700
|
release_failure_issue_label=release_failure_issue_label,
|
|
@@ -6750,6 +6802,7 @@ class ConstructLibraryCdk8s(
|
|
|
6750
6802
|
"npm_registry": "npmRegistry",
|
|
6751
6803
|
"npm_registry_url": "npmRegistryUrl",
|
|
6752
6804
|
"npm_token_secret": "npmTokenSecret",
|
|
6805
|
+
"npm_trusted_publishing": "npmTrustedPublishing",
|
|
6753
6806
|
"package_manager": "packageManager",
|
|
6754
6807
|
"package_name": "packageName",
|
|
6755
6808
|
"peer_dependency_options": "peerDependencyOptions",
|
|
@@ -6773,6 +6826,7 @@ class ConstructLibraryCdk8s(
|
|
|
6773
6826
|
"publish_tasks": "publishTasks",
|
|
6774
6827
|
"releasable_commits": "releasableCommits",
|
|
6775
6828
|
"release_branches": "releaseBranches",
|
|
6829
|
+
"release_environment": "releaseEnvironment",
|
|
6776
6830
|
"release_every_commit": "releaseEveryCommit",
|
|
6777
6831
|
"release_failure_issue": "releaseFailureIssue",
|
|
6778
6832
|
"release_failure_issue_label": "releaseFailureIssueLabel",
|
|
@@ -6929,6 +6983,7 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
6929
6983
|
npm_registry: typing.Optional[builtins.str] = None,
|
|
6930
6984
|
npm_registry_url: typing.Optional[builtins.str] = None,
|
|
6931
6985
|
npm_token_secret: typing.Optional[builtins.str] = None,
|
|
6986
|
+
npm_trusted_publishing: typing.Optional[builtins.bool] = None,
|
|
6932
6987
|
package_manager: typing.Optional[_NodePackageManager_3eb53bf6] = None,
|
|
6933
6988
|
package_name: typing.Optional[builtins.str] = None,
|
|
6934
6989
|
peer_dependency_options: typing.Optional[typing.Union[_PeerDependencyOptions_99d7d493, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -6952,6 +7007,7 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
6952
7007
|
publish_tasks: typing.Optional[builtins.bool] = None,
|
|
6953
7008
|
releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
|
|
6954
7009
|
release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7010
|
+
release_environment: typing.Optional[builtins.str] = None,
|
|
6955
7011
|
release_every_commit: typing.Optional[builtins.bool] = None,
|
|
6956
7012
|
release_failure_issue: typing.Optional[builtins.bool] = None,
|
|
6957
7013
|
release_failure_issue_label: typing.Optional[builtins.str] = None,
|
|
@@ -7104,6 +7160,7 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
7104
7160
|
:param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
|
|
7105
7161
|
:param npm_registry_url: (experimental) The base URL of the npm package registry. Must be a URL (e.g. start with "https://" or "http://") Default: "https://registry.npmjs.org"
|
|
7106
7162
|
:param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
|
|
7163
|
+
:param npm_trusted_publishing: (experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work. Default: - false
|
|
7107
7164
|
:param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
|
|
7108
7165
|
:param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
|
|
7109
7166
|
:param peer_dependency_options: (experimental) Options for ``peerDeps``.
|
|
@@ -7127,6 +7184,7 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
7127
7184
|
:param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
|
|
7128
7185
|
:param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
|
|
7129
7186
|
:param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
|
|
7187
|
+
:param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
|
|
7130
7188
|
:param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
|
|
7131
7189
|
:param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
|
|
7132
7190
|
:param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
|
|
@@ -7360,6 +7418,7 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
7360
7418
|
check_type(argname="argument npm_registry", value=npm_registry, expected_type=type_hints["npm_registry"])
|
|
7361
7419
|
check_type(argname="argument npm_registry_url", value=npm_registry_url, expected_type=type_hints["npm_registry_url"])
|
|
7362
7420
|
check_type(argname="argument npm_token_secret", value=npm_token_secret, expected_type=type_hints["npm_token_secret"])
|
|
7421
|
+
check_type(argname="argument npm_trusted_publishing", value=npm_trusted_publishing, expected_type=type_hints["npm_trusted_publishing"])
|
|
7363
7422
|
check_type(argname="argument package_manager", value=package_manager, expected_type=type_hints["package_manager"])
|
|
7364
7423
|
check_type(argname="argument package_name", value=package_name, expected_type=type_hints["package_name"])
|
|
7365
7424
|
check_type(argname="argument peer_dependency_options", value=peer_dependency_options, expected_type=type_hints["peer_dependency_options"])
|
|
@@ -7383,6 +7442,7 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
7383
7442
|
check_type(argname="argument publish_tasks", value=publish_tasks, expected_type=type_hints["publish_tasks"])
|
|
7384
7443
|
check_type(argname="argument releasable_commits", value=releasable_commits, expected_type=type_hints["releasable_commits"])
|
|
7385
7444
|
check_type(argname="argument release_branches", value=release_branches, expected_type=type_hints["release_branches"])
|
|
7445
|
+
check_type(argname="argument release_environment", value=release_environment, expected_type=type_hints["release_environment"])
|
|
7386
7446
|
check_type(argname="argument release_every_commit", value=release_every_commit, expected_type=type_hints["release_every_commit"])
|
|
7387
7447
|
check_type(argname="argument release_failure_issue", value=release_failure_issue, expected_type=type_hints["release_failure_issue"])
|
|
7388
7448
|
check_type(argname="argument release_failure_issue_label", value=release_failure_issue_label, expected_type=type_hints["release_failure_issue_label"])
|
|
@@ -7595,6 +7655,8 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
7595
7655
|
self._values["npm_registry_url"] = npm_registry_url
|
|
7596
7656
|
if npm_token_secret is not None:
|
|
7597
7657
|
self._values["npm_token_secret"] = npm_token_secret
|
|
7658
|
+
if npm_trusted_publishing is not None:
|
|
7659
|
+
self._values["npm_trusted_publishing"] = npm_trusted_publishing
|
|
7598
7660
|
if package_manager is not None:
|
|
7599
7661
|
self._values["package_manager"] = package_manager
|
|
7600
7662
|
if package_name is not None:
|
|
@@ -7641,6 +7703,8 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
7641
7703
|
self._values["releasable_commits"] = releasable_commits
|
|
7642
7704
|
if release_branches is not None:
|
|
7643
7705
|
self._values["release_branches"] = release_branches
|
|
7706
|
+
if release_environment is not None:
|
|
7707
|
+
self._values["release_environment"] = release_environment
|
|
7644
7708
|
if release_every_commit is not None:
|
|
7645
7709
|
self._values["release_every_commit"] = release_every_commit
|
|
7646
7710
|
if release_failure_issue is not None:
|
|
@@ -8535,6 +8599,17 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
8535
8599
|
result = self._values.get("npm_token_secret")
|
|
8536
8600
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
8537
8601
|
|
|
8602
|
+
@builtins.property
|
|
8603
|
+
def npm_trusted_publishing(self) -> typing.Optional[builtins.bool]:
|
|
8604
|
+
'''(experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work.
|
|
8605
|
+
|
|
8606
|
+
:default: - false
|
|
8607
|
+
|
|
8608
|
+
:stability: experimental
|
|
8609
|
+
'''
|
|
8610
|
+
result = self._values.get("npm_trusted_publishing")
|
|
8611
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
8612
|
+
|
|
8538
8613
|
@builtins.property
|
|
8539
8614
|
def package_manager(self) -> typing.Optional[_NodePackageManager_3eb53bf6]:
|
|
8540
8615
|
'''(experimental) The Node Package Manager used to execute scripts.
|
|
@@ -8854,6 +8929,23 @@ class ConstructLibraryCdk8sOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
8854
8929
|
result = self._values.get("release_branches")
|
|
8855
8930
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, _BranchOptions_13663d08]], result)
|
|
8856
8931
|
|
|
8932
|
+
@builtins.property
|
|
8933
|
+
def release_environment(self) -> typing.Optional[builtins.str]:
|
|
8934
|
+
'''(experimental) The GitHub Actions environment used for the release.
|
|
8935
|
+
|
|
8936
|
+
This can be used to add an explicit approval step to the release
|
|
8937
|
+
or limit who can initiate a release through environment protection rules.
|
|
8938
|
+
|
|
8939
|
+
When multiple artifacts are released, the environment can be overwritten
|
|
8940
|
+
on a per artifact basis.
|
|
8941
|
+
|
|
8942
|
+
:default: - no environment used, unless set at the artifact level
|
|
8943
|
+
|
|
8944
|
+
:stability: experimental
|
|
8945
|
+
'''
|
|
8946
|
+
result = self._values.get("release_environment")
|
|
8947
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
8948
|
+
|
|
8857
8949
|
@builtins.property
|
|
8858
8950
|
def release_every_commit(self) -> typing.Optional[builtins.bool]:
|
|
8859
8951
|
'''(deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``.
|
|
@@ -10520,6 +10612,7 @@ def _typecheckingstub__38d5838b3dba3e0494a1842bc0bf0513fd0a9baecf03b52c6bb2ef53e
|
|
|
10520
10612
|
npm_registry: typing.Optional[builtins.str] = None,
|
|
10521
10613
|
npm_registry_url: typing.Optional[builtins.str] = None,
|
|
10522
10614
|
npm_token_secret: typing.Optional[builtins.str] = None,
|
|
10615
|
+
npm_trusted_publishing: typing.Optional[builtins.bool] = None,
|
|
10523
10616
|
package_manager: typing.Optional[_NodePackageManager_3eb53bf6] = None,
|
|
10524
10617
|
package_name: typing.Optional[builtins.str] = None,
|
|
10525
10618
|
peer_dependency_options: typing.Optional[typing.Union[_PeerDependencyOptions_99d7d493, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -10543,6 +10636,7 @@ def _typecheckingstub__38d5838b3dba3e0494a1842bc0bf0513fd0a9baecf03b52c6bb2ef53e
|
|
|
10543
10636
|
publish_tasks: typing.Optional[builtins.bool] = None,
|
|
10544
10637
|
releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
|
|
10545
10638
|
release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10639
|
+
release_environment: typing.Optional[builtins.str] = None,
|
|
10546
10640
|
release_every_commit: typing.Optional[builtins.bool] = None,
|
|
10547
10641
|
release_failure_issue: typing.Optional[builtins.bool] = None,
|
|
10548
10642
|
release_failure_issue_label: typing.Optional[builtins.str] = None,
|
|
@@ -10690,6 +10784,7 @@ def _typecheckingstub__af97c045aa0635813d6575f726d794c22aabe3eb1e51bf1ae61d8f28b
|
|
|
10690
10784
|
npm_registry: typing.Optional[builtins.str] = None,
|
|
10691
10785
|
npm_registry_url: typing.Optional[builtins.str] = None,
|
|
10692
10786
|
npm_token_secret: typing.Optional[builtins.str] = None,
|
|
10787
|
+
npm_trusted_publishing: typing.Optional[builtins.bool] = None,
|
|
10693
10788
|
package_manager: typing.Optional[_NodePackageManager_3eb53bf6] = None,
|
|
10694
10789
|
package_name: typing.Optional[builtins.str] = None,
|
|
10695
10790
|
peer_dependency_options: typing.Optional[typing.Union[_PeerDependencyOptions_99d7d493, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -10713,6 +10808,7 @@ def _typecheckingstub__af97c045aa0635813d6575f726d794c22aabe3eb1e51bf1ae61d8f28b
|
|
|
10713
10808
|
publish_tasks: typing.Optional[builtins.bool] = None,
|
|
10714
10809
|
releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
|
|
10715
10810
|
release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10811
|
+
release_environment: typing.Optional[builtins.str] = None,
|
|
10716
10812
|
release_every_commit: typing.Optional[builtins.bool] = None,
|
|
10717
10813
|
release_failure_issue: typing.Optional[builtins.bool] = None,
|
|
10718
10814
|
release_failure_issue_label: typing.Optional[builtins.str] = None,
|
projen/cdktf/__init__.py
CHANGED
|
@@ -232,6 +232,7 @@ class ConstructLibraryCdktf(
|
|
|
232
232
|
npm_registry: typing.Optional[builtins.str] = None,
|
|
233
233
|
npm_registry_url: typing.Optional[builtins.str] = None,
|
|
234
234
|
npm_token_secret: typing.Optional[builtins.str] = None,
|
|
235
|
+
npm_trusted_publishing: typing.Optional[builtins.bool] = None,
|
|
235
236
|
package_manager: typing.Optional[_NodePackageManager_3eb53bf6] = None,
|
|
236
237
|
package_name: typing.Optional[builtins.str] = None,
|
|
237
238
|
peer_dependency_options: typing.Optional[typing.Union[_PeerDependencyOptions_99d7d493, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -255,6 +256,7 @@ class ConstructLibraryCdktf(
|
|
|
255
256
|
publish_tasks: typing.Optional[builtins.bool] = None,
|
|
256
257
|
releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
|
|
257
258
|
release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
259
|
+
release_environment: typing.Optional[builtins.str] = None,
|
|
258
260
|
release_every_commit: typing.Optional[builtins.bool] = None,
|
|
259
261
|
release_failure_issue: typing.Optional[builtins.bool] = None,
|
|
260
262
|
release_failure_issue_label: typing.Optional[builtins.str] = None,
|
|
@@ -403,6 +405,7 @@ class ConstructLibraryCdktf(
|
|
|
403
405
|
:param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
|
|
404
406
|
:param npm_registry_url: (experimental) The base URL of the npm package registry. Must be a URL (e.g. start with "https://" or "http://") Default: "https://registry.npmjs.org"
|
|
405
407
|
:param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
|
|
408
|
+
:param npm_trusted_publishing: (experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work. Default: - false
|
|
406
409
|
:param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
|
|
407
410
|
:param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
|
|
408
411
|
:param peer_dependency_options: (experimental) Options for ``peerDeps``.
|
|
@@ -426,6 +429,7 @@ class ConstructLibraryCdktf(
|
|
|
426
429
|
:param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
|
|
427
430
|
:param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
|
|
428
431
|
:param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
|
|
432
|
+
:param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
|
|
429
433
|
:param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
|
|
430
434
|
:param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
|
|
431
435
|
:param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
|
|
@@ -576,6 +580,7 @@ class ConstructLibraryCdktf(
|
|
|
576
580
|
npm_registry=npm_registry,
|
|
577
581
|
npm_registry_url=npm_registry_url,
|
|
578
582
|
npm_token_secret=npm_token_secret,
|
|
583
|
+
npm_trusted_publishing=npm_trusted_publishing,
|
|
579
584
|
package_manager=package_manager,
|
|
580
585
|
package_name=package_name,
|
|
581
586
|
peer_dependency_options=peer_dependency_options,
|
|
@@ -599,6 +604,7 @@ class ConstructLibraryCdktf(
|
|
|
599
604
|
publish_tasks=publish_tasks,
|
|
600
605
|
releasable_commits=releasable_commits,
|
|
601
606
|
release_branches=release_branches,
|
|
607
|
+
release_environment=release_environment,
|
|
602
608
|
release_every_commit=release_every_commit,
|
|
603
609
|
release_failure_issue=release_failure_issue,
|
|
604
610
|
release_failure_issue_label=release_failure_issue_label,
|
|
@@ -688,6 +694,7 @@ class ConstructLibraryCdktf(
|
|
|
688
694
|
"npm_registry": "npmRegistry",
|
|
689
695
|
"npm_registry_url": "npmRegistryUrl",
|
|
690
696
|
"npm_token_secret": "npmTokenSecret",
|
|
697
|
+
"npm_trusted_publishing": "npmTrustedPublishing",
|
|
691
698
|
"package_manager": "packageManager",
|
|
692
699
|
"package_name": "packageName",
|
|
693
700
|
"peer_dependency_options": "peerDependencyOptions",
|
|
@@ -711,6 +718,7 @@ class ConstructLibraryCdktf(
|
|
|
711
718
|
"publish_tasks": "publishTasks",
|
|
712
719
|
"releasable_commits": "releasableCommits",
|
|
713
720
|
"release_branches": "releaseBranches",
|
|
721
|
+
"release_environment": "releaseEnvironment",
|
|
714
722
|
"release_every_commit": "releaseEveryCommit",
|
|
715
723
|
"release_failure_issue": "releaseFailureIssue",
|
|
716
724
|
"release_failure_issue_label": "releaseFailureIssueLabel",
|
|
@@ -863,6 +871,7 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
863
871
|
npm_registry: typing.Optional[builtins.str] = None,
|
|
864
872
|
npm_registry_url: typing.Optional[builtins.str] = None,
|
|
865
873
|
npm_token_secret: typing.Optional[builtins.str] = None,
|
|
874
|
+
npm_trusted_publishing: typing.Optional[builtins.bool] = None,
|
|
866
875
|
package_manager: typing.Optional[_NodePackageManager_3eb53bf6] = None,
|
|
867
876
|
package_name: typing.Optional[builtins.str] = None,
|
|
868
877
|
peer_dependency_options: typing.Optional[typing.Union[_PeerDependencyOptions_99d7d493, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -886,6 +895,7 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
886
895
|
publish_tasks: typing.Optional[builtins.bool] = None,
|
|
887
896
|
releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
|
|
888
897
|
release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
898
|
+
release_environment: typing.Optional[builtins.str] = None,
|
|
889
899
|
release_every_commit: typing.Optional[builtins.bool] = None,
|
|
890
900
|
release_failure_issue: typing.Optional[builtins.bool] = None,
|
|
891
901
|
release_failure_issue_label: typing.Optional[builtins.str] = None,
|
|
@@ -1034,6 +1044,7 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
1034
1044
|
:param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
|
|
1035
1045
|
:param npm_registry_url: (experimental) The base URL of the npm package registry. Must be a URL (e.g. start with "https://" or "http://") Default: "https://registry.npmjs.org"
|
|
1036
1046
|
:param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
|
|
1047
|
+
:param npm_trusted_publishing: (experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work. Default: - false
|
|
1037
1048
|
:param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
|
|
1038
1049
|
:param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
|
|
1039
1050
|
:param peer_dependency_options: (experimental) Options for ``peerDeps``.
|
|
@@ -1057,6 +1068,7 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
1057
1068
|
:param publish_tasks: (experimental) Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity. Default: false
|
|
1058
1069
|
:param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
|
|
1059
1070
|
:param release_branches: (experimental) Defines additional release branches. A workflow will be created for each release branch which will publish releases from commits in this branch. Each release branch *must* be assigned a major version number which is used to enforce that versions published from that branch always use that major version. If multiple branches are used, the ``majorVersion`` field must also be provided for the default branch. Default: - no additional branches are used for release. you can use ``addBranch()`` to add additional branches.
|
|
1071
|
+
:param release_environment: (experimental) The GitHub Actions environment used for the release. This can be used to add an explicit approval step to the release or limit who can initiate a release through environment protection rules. When multiple artifacts are released, the environment can be overwritten on a per artifact basis. Default: - no environment used, unless set at the artifact level
|
|
1060
1072
|
:param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
|
|
1061
1073
|
:param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
|
|
1062
1074
|
:param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
|
|
@@ -1286,6 +1298,7 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
1286
1298
|
check_type(argname="argument npm_registry", value=npm_registry, expected_type=type_hints["npm_registry"])
|
|
1287
1299
|
check_type(argname="argument npm_registry_url", value=npm_registry_url, expected_type=type_hints["npm_registry_url"])
|
|
1288
1300
|
check_type(argname="argument npm_token_secret", value=npm_token_secret, expected_type=type_hints["npm_token_secret"])
|
|
1301
|
+
check_type(argname="argument npm_trusted_publishing", value=npm_trusted_publishing, expected_type=type_hints["npm_trusted_publishing"])
|
|
1289
1302
|
check_type(argname="argument package_manager", value=package_manager, expected_type=type_hints["package_manager"])
|
|
1290
1303
|
check_type(argname="argument package_name", value=package_name, expected_type=type_hints["package_name"])
|
|
1291
1304
|
check_type(argname="argument peer_dependency_options", value=peer_dependency_options, expected_type=type_hints["peer_dependency_options"])
|
|
@@ -1309,6 +1322,7 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
1309
1322
|
check_type(argname="argument publish_tasks", value=publish_tasks, expected_type=type_hints["publish_tasks"])
|
|
1310
1323
|
check_type(argname="argument releasable_commits", value=releasable_commits, expected_type=type_hints["releasable_commits"])
|
|
1311
1324
|
check_type(argname="argument release_branches", value=release_branches, expected_type=type_hints["release_branches"])
|
|
1325
|
+
check_type(argname="argument release_environment", value=release_environment, expected_type=type_hints["release_environment"])
|
|
1312
1326
|
check_type(argname="argument release_every_commit", value=release_every_commit, expected_type=type_hints["release_every_commit"])
|
|
1313
1327
|
check_type(argname="argument release_failure_issue", value=release_failure_issue, expected_type=type_hints["release_failure_issue"])
|
|
1314
1328
|
check_type(argname="argument release_failure_issue_label", value=release_failure_issue_label, expected_type=type_hints["release_failure_issue_label"])
|
|
@@ -1517,6 +1531,8 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
1517
1531
|
self._values["npm_registry_url"] = npm_registry_url
|
|
1518
1532
|
if npm_token_secret is not None:
|
|
1519
1533
|
self._values["npm_token_secret"] = npm_token_secret
|
|
1534
|
+
if npm_trusted_publishing is not None:
|
|
1535
|
+
self._values["npm_trusted_publishing"] = npm_trusted_publishing
|
|
1520
1536
|
if package_manager is not None:
|
|
1521
1537
|
self._values["package_manager"] = package_manager
|
|
1522
1538
|
if package_name is not None:
|
|
@@ -1563,6 +1579,8 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
1563
1579
|
self._values["releasable_commits"] = releasable_commits
|
|
1564
1580
|
if release_branches is not None:
|
|
1565
1581
|
self._values["release_branches"] = release_branches
|
|
1582
|
+
if release_environment is not None:
|
|
1583
|
+
self._values["release_environment"] = release_environment
|
|
1566
1584
|
if release_every_commit is not None:
|
|
1567
1585
|
self._values["release_every_commit"] = release_every_commit
|
|
1568
1586
|
if release_failure_issue is not None:
|
|
@@ -2449,6 +2467,17 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
2449
2467
|
result = self._values.get("npm_token_secret")
|
|
2450
2468
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
2451
2469
|
|
|
2470
|
+
@builtins.property
|
|
2471
|
+
def npm_trusted_publishing(self) -> typing.Optional[builtins.bool]:
|
|
2472
|
+
'''(experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work.
|
|
2473
|
+
|
|
2474
|
+
:default: - false
|
|
2475
|
+
|
|
2476
|
+
:stability: experimental
|
|
2477
|
+
'''
|
|
2478
|
+
result = self._values.get("npm_trusted_publishing")
|
|
2479
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
2480
|
+
|
|
2452
2481
|
@builtins.property
|
|
2453
2482
|
def package_manager(self) -> typing.Optional[_NodePackageManager_3eb53bf6]:
|
|
2454
2483
|
'''(experimental) The Node Package Manager used to execute scripts.
|
|
@@ -2768,6 +2797,23 @@ class ConstructLibraryCdktfOptions(_ConstructLibraryOptions_dcd2adc0):
|
|
|
2768
2797
|
result = self._values.get("release_branches")
|
|
2769
2798
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, _BranchOptions_13663d08]], result)
|
|
2770
2799
|
|
|
2800
|
+
@builtins.property
|
|
2801
|
+
def release_environment(self) -> typing.Optional[builtins.str]:
|
|
2802
|
+
'''(experimental) The GitHub Actions environment used for the release.
|
|
2803
|
+
|
|
2804
|
+
This can be used to add an explicit approval step to the release
|
|
2805
|
+
or limit who can initiate a release through environment protection rules.
|
|
2806
|
+
|
|
2807
|
+
When multiple artifacts are released, the environment can be overwritten
|
|
2808
|
+
on a per artifact basis.
|
|
2809
|
+
|
|
2810
|
+
:default: - no environment used, unless set at the artifact level
|
|
2811
|
+
|
|
2812
|
+
:stability: experimental
|
|
2813
|
+
'''
|
|
2814
|
+
result = self._values.get("release_environment")
|
|
2815
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2816
|
+
|
|
2771
2817
|
@builtins.property
|
|
2772
2818
|
def release_every_commit(self) -> typing.Optional[builtins.bool]:
|
|
2773
2819
|
'''(deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``.
|
|
@@ -3905,6 +3951,7 @@ def _typecheckingstub__bbf02af18148d47e66a6d0672a809602f782953da7a849545a808c276
|
|
|
3905
3951
|
npm_registry: typing.Optional[builtins.str] = None,
|
|
3906
3952
|
npm_registry_url: typing.Optional[builtins.str] = None,
|
|
3907
3953
|
npm_token_secret: typing.Optional[builtins.str] = None,
|
|
3954
|
+
npm_trusted_publishing: typing.Optional[builtins.bool] = None,
|
|
3908
3955
|
package_manager: typing.Optional[_NodePackageManager_3eb53bf6] = None,
|
|
3909
3956
|
package_name: typing.Optional[builtins.str] = None,
|
|
3910
3957
|
peer_dependency_options: typing.Optional[typing.Union[_PeerDependencyOptions_99d7d493, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -3928,6 +3975,7 @@ def _typecheckingstub__bbf02af18148d47e66a6d0672a809602f782953da7a849545a808c276
|
|
|
3928
3975
|
publish_tasks: typing.Optional[builtins.bool] = None,
|
|
3929
3976
|
releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
|
|
3930
3977
|
release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3978
|
+
release_environment: typing.Optional[builtins.str] = None,
|
|
3931
3979
|
release_every_commit: typing.Optional[builtins.bool] = None,
|
|
3932
3980
|
release_failure_issue: typing.Optional[builtins.bool] = None,
|
|
3933
3981
|
release_failure_issue_label: typing.Optional[builtins.str] = None,
|