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/github/__init__.py CHANGED
@@ -7073,6 +7073,7 @@ class TaskWorkflow(
7073
7073
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
7074
7074
  download_lfs: typing.Optional[builtins.bool] = None,
7075
7075
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
7076
+ environment: typing.Optional[builtins.str] = None,
7076
7077
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
7077
7078
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
7078
7079
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -7095,6 +7096,7 @@ class TaskWorkflow(
7095
7096
  :param container: Default: - default image
7096
7097
  :param download_lfs: (experimental) Whether to download files from Git LFS for this workflow. Default: - Use the setting on the corresponding GitHub project
7097
7098
  :param env: (experimental) Workflow environment variables. Default: {}
7099
+ :param environment: (experimental) The GitHub Actions environment used for the job. Default: - no environment used
7098
7100
  :param git_identity: (experimental) The git identity to use in this workflow.
7099
7101
  :param job_defaults: (experimental) Default settings for all steps in the TaskWorkflow Job.
7100
7102
  :param outputs: (experimental) Mapping of job output names to values/expressions. Default: {}
@@ -7121,6 +7123,7 @@ class TaskWorkflow(
7121
7123
  container=container,
7122
7124
  download_lfs=download_lfs,
7123
7125
  env=env,
7126
+ environment=environment,
7124
7127
  git_identity=git_identity,
7125
7128
  job_defaults=job_defaults,
7126
7129
  outputs=outputs,
@@ -7173,6 +7176,7 @@ class TaskWorkflowJob(
7173
7176
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
7174
7177
  download_lfs: typing.Optional[builtins.bool] = None,
7175
7178
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
7179
+ environment: typing.Optional[builtins.str] = None,
7176
7180
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
7177
7181
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
7178
7182
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -7192,6 +7196,7 @@ class TaskWorkflowJob(
7192
7196
  :param container: Default: - default image
7193
7197
  :param download_lfs: (experimental) Whether to download files from Git LFS for this workflow. Default: - Use the setting on the corresponding GitHub project
7194
7198
  :param env: (experimental) Workflow environment variables. Default: {}
7199
+ :param environment: (experimental) The GitHub Actions environment used for the job. Default: - no environment used
7195
7200
  :param git_identity: (experimental) The git identity to use in this workflow.
7196
7201
  :param job_defaults: (experimental) Default settings for all steps in the TaskWorkflow Job.
7197
7202
  :param outputs: (experimental) Mapping of job output names to values/expressions. Default: {}
@@ -7215,6 +7220,7 @@ class TaskWorkflowJob(
7215
7220
  container=container,
7216
7221
  download_lfs=download_lfs,
7217
7222
  env=env,
7223
+ environment=environment,
7218
7224
  git_identity=git_identity,
7219
7225
  job_defaults=job_defaults,
7220
7226
  outputs=outputs,
@@ -7285,11 +7291,11 @@ class TaskWorkflowJob(
7285
7291
 
7286
7292
  @builtins.property
7287
7293
  @jsii.member(jsii_name="environment")
7288
- def environment(self) -> typing.Any:
7294
+ def environment(self) -> typing.Optional[builtins.str]:
7289
7295
  '''
7290
7296
  :stability: experimental
7291
7297
  '''
7292
- return typing.cast(typing.Any, jsii.get(self, "environment"))
7298
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "environment"))
7293
7299
 
7294
7300
  @builtins.property
7295
7301
  @jsii.member(jsii_name="if")
@@ -7387,6 +7393,7 @@ class TaskWorkflowJob(
7387
7393
  "container": "container",
7388
7394
  "download_lfs": "downloadLfs",
7389
7395
  "env": "env",
7396
+ "environment": "environment",
7390
7397
  "git_identity": "gitIdentity",
7391
7398
  "job_defaults": "jobDefaults",
7392
7399
  "outputs": "outputs",
@@ -7408,6 +7415,7 @@ class TaskWorkflowJobOptions:
7408
7415
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
7409
7416
  download_lfs: typing.Optional[builtins.bool] = None,
7410
7417
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
7418
+ environment: typing.Optional[builtins.str] = None,
7411
7419
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
7412
7420
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
7413
7421
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -7426,6 +7434,7 @@ class TaskWorkflowJobOptions:
7426
7434
  :param container: Default: - default image
7427
7435
  :param download_lfs: (experimental) Whether to download files from Git LFS for this workflow. Default: - Use the setting on the corresponding GitHub project
7428
7436
  :param env: (experimental) Workflow environment variables. Default: {}
7437
+ :param environment: (experimental) The GitHub Actions environment used for the job. Default: - no environment used
7429
7438
  :param git_identity: (experimental) The git identity to use in this workflow.
7430
7439
  :param job_defaults: (experimental) Default settings for all steps in the TaskWorkflow Job.
7431
7440
  :param outputs: (experimental) Mapping of job output names to values/expressions. Default: {}
@@ -7458,6 +7467,7 @@ class TaskWorkflowJobOptions:
7458
7467
  check_type(argname="argument container", value=container, expected_type=type_hints["container"])
7459
7468
  check_type(argname="argument download_lfs", value=download_lfs, expected_type=type_hints["download_lfs"])
7460
7469
  check_type(argname="argument env", value=env, expected_type=type_hints["env"])
7470
+ check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
7461
7471
  check_type(argname="argument git_identity", value=git_identity, expected_type=type_hints["git_identity"])
7462
7472
  check_type(argname="argument job_defaults", value=job_defaults, expected_type=type_hints["job_defaults"])
7463
7473
  check_type(argname="argument outputs", value=outputs, expected_type=type_hints["outputs"])
@@ -7481,6 +7491,8 @@ class TaskWorkflowJobOptions:
7481
7491
  self._values["download_lfs"] = download_lfs
7482
7492
  if env is not None:
7483
7493
  self._values["env"] = env
7494
+ if environment is not None:
7495
+ self._values["environment"] = environment
7484
7496
  if git_identity is not None:
7485
7497
  self._values["git_identity"] = git_identity
7486
7498
  if job_defaults is not None:
@@ -7571,6 +7583,17 @@ class TaskWorkflowJobOptions:
7571
7583
  result = self._values.get("env")
7572
7584
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
7573
7585
 
7586
+ @builtins.property
7587
+ def environment(self) -> typing.Optional[builtins.str]:
7588
+ '''(experimental) The GitHub Actions environment used for the job.
7589
+
7590
+ :default: - no environment used
7591
+
7592
+ :stability: experimental
7593
+ '''
7594
+ result = self._values.get("environment")
7595
+ return typing.cast(typing.Optional[builtins.str], result)
7596
+
7574
7597
  @builtins.property
7575
7598
  def git_identity(self) -> typing.Optional[GitIdentity]:
7576
7599
  '''(experimental) The git identity to use in this workflow.
@@ -7682,6 +7705,7 @@ class TaskWorkflowJobOptions:
7682
7705
  "container": "container",
7683
7706
  "download_lfs": "downloadLfs",
7684
7707
  "env": "env",
7708
+ "environment": "environment",
7685
7709
  "git_identity": "gitIdentity",
7686
7710
  "job_defaults": "jobDefaults",
7687
7711
  "outputs": "outputs",
@@ -7707,6 +7731,7 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7707
7731
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
7708
7732
  download_lfs: typing.Optional[builtins.bool] = None,
7709
7733
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
7734
+ environment: typing.Optional[builtins.str] = None,
7710
7735
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
7711
7736
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
7712
7737
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -7729,6 +7754,7 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7729
7754
  :param container: Default: - default image
7730
7755
  :param download_lfs: (experimental) Whether to download files from Git LFS for this workflow. Default: - Use the setting on the corresponding GitHub project
7731
7756
  :param env: (experimental) Workflow environment variables. Default: {}
7757
+ :param environment: (experimental) The GitHub Actions environment used for the job. Default: - no environment used
7732
7758
  :param git_identity: (experimental) The git identity to use in this workflow.
7733
7759
  :param job_defaults: (experimental) Default settings for all steps in the TaskWorkflow Job.
7734
7760
  :param outputs: (experimental) Mapping of job output names to values/expressions. Default: {}
@@ -7767,6 +7793,7 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7767
7793
  check_type(argname="argument container", value=container, expected_type=type_hints["container"])
7768
7794
  check_type(argname="argument download_lfs", value=download_lfs, expected_type=type_hints["download_lfs"])
7769
7795
  check_type(argname="argument env", value=env, expected_type=type_hints["env"])
7796
+ check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
7770
7797
  check_type(argname="argument git_identity", value=git_identity, expected_type=type_hints["git_identity"])
7771
7798
  check_type(argname="argument job_defaults", value=job_defaults, expected_type=type_hints["job_defaults"])
7772
7799
  check_type(argname="argument outputs", value=outputs, expected_type=type_hints["outputs"])
@@ -7796,6 +7823,8 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7796
7823
  self._values["download_lfs"] = download_lfs
7797
7824
  if env is not None:
7798
7825
  self._values["env"] = env
7826
+ if environment is not None:
7827
+ self._values["environment"] = environment
7799
7828
  if git_identity is not None:
7800
7829
  self._values["git_identity"] = git_identity
7801
7830
  if job_defaults is not None:
@@ -7890,6 +7919,17 @@ class TaskWorkflowOptions(TaskWorkflowJobOptions):
7890
7919
  result = self._values.get("env")
7891
7920
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
7892
7921
 
7922
+ @builtins.property
7923
+ def environment(self) -> typing.Optional[builtins.str]:
7924
+ '''(experimental) The GitHub Actions environment used for the job.
7925
+
7926
+ :default: - no environment used
7927
+
7928
+ :stability: experimental
7929
+ '''
7930
+ result = self._values.get("environment")
7931
+ return typing.cast(typing.Optional[builtins.str], result)
7932
+
7893
7933
  @builtins.property
7894
7934
  def git_identity(self) -> typing.Optional[GitIdentity]:
7895
7935
  '''(experimental) The git identity to use in this workflow.
@@ -9831,6 +9871,7 @@ def _typecheckingstub__8d4fb3030e96a87b921aa6bfb0d4ccf7a90d4c2affbcb8eeca2d5a24c
9831
9871
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
9832
9872
  download_lfs: typing.Optional[builtins.bool] = None,
9833
9873
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9874
+ environment: typing.Optional[builtins.str] = None,
9834
9875
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
9835
9876
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
9836
9877
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -9854,6 +9895,7 @@ def _typecheckingstub__8e35b96aa7e4fe84c59cac8c7e3f4c146c780c7b09807f610b1aaf727
9854
9895
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
9855
9896
  download_lfs: typing.Optional[builtins.bool] = None,
9856
9897
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9898
+ environment: typing.Optional[builtins.str] = None,
9857
9899
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
9858
9900
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
9859
9901
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -9875,6 +9917,7 @@ def _typecheckingstub__4f2039f9f0120fa5bcc0261afed5aa5fd2be59874413018ee781d5e75
9875
9917
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
9876
9918
  download_lfs: typing.Optional[builtins.bool] = None,
9877
9919
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9920
+ environment: typing.Optional[builtins.str] = None,
9878
9921
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
9879
9922
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
9880
9923
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -9896,6 +9939,7 @@ def _typecheckingstub__15e1c594f5876baf2e105789fcb541bcb5e71cea5ad4320fb67052a9c
9896
9939
  container: typing.Optional[typing.Union[_ContainerOptions_f50907af, typing.Dict[builtins.str, typing.Any]]] = None,
9897
9940
  download_lfs: typing.Optional[builtins.bool] = None,
9898
9941
  env: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9942
+ environment: typing.Optional[builtins.str] = None,
9899
9943
  git_identity: typing.Optional[typing.Union[GitIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
9900
9944
  job_defaults: typing.Optional[typing.Union[_JobDefaults_965f0d10, typing.Dict[builtins.str, typing.Any]]] = None,
9901
9945
  outputs: typing.Optional[typing.Mapping[builtins.str, typing.Union[_JobStepOutput_acebe827, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -144,6 +144,7 @@ class Biome(
144
144
  assist: typing.Optional[builtins.bool] = None,
145
145
  biome_config: typing.Optional[typing.Union[_BiomeConfiguration_dd1a6c83, typing.Dict[builtins.str, typing.Any]]] = None,
146
146
  formatter: typing.Optional[builtins.bool] = None,
147
+ ignore_generated_files: typing.Optional[builtins.bool] = None,
147
148
  linter: typing.Optional[builtins.bool] = None,
148
149
  merge_arrays_in_configuration: typing.Optional[builtins.bool] = None,
149
150
  version: typing.Optional[builtins.str] = None,
@@ -153,6 +154,7 @@ class Biome(
153
154
  :param assist: (experimental) Enable code assist with recommended actions. Default: true
154
155
  :param biome_config: (experimental) Full Biome configuration. This configuration dictates the final outcome if value is set. For example, if the linter is disabled at the top-level, it can be enabled with ``biomeConfig.linter.enabled``.
155
156
  :param formatter: (experimental) Enable code formatter with recommended settings. Default: true
157
+ :param ignore_generated_files: (experimental) Automatically ignore all generated files. This prevents Biome from trying to format or lint files that are marked as generated, which would fail since generated files are typically read-only. Default: true
156
158
  :param linter: (experimental) Enable linting with recommended rules. Default: true
157
159
  :param merge_arrays_in_configuration: (experimental) Should arrays be merged or overwritten when creating Biome configuration. By default arrays are merged and duplicate values are removed Default: true
158
160
  :param version: (experimental) Version of Biome to use. Default: "^2"
@@ -166,6 +168,7 @@ class Biome(
166
168
  assist=assist,
167
169
  biome_config=biome_config,
168
170
  formatter=formatter,
171
+ ignore_generated_files=ignore_generated_files,
169
172
  linter=linter,
170
173
  merge_arrays_in_configuration=merge_arrays_in_configuration,
171
174
  version=version,
@@ -224,6 +227,7 @@ class Biome(
224
227
  "assist": "assist",
225
228
  "biome_config": "biomeConfig",
226
229
  "formatter": "formatter",
230
+ "ignore_generated_files": "ignoreGeneratedFiles",
227
231
  "linter": "linter",
228
232
  "merge_arrays_in_configuration": "mergeArraysInConfiguration",
229
233
  "version": "version",
@@ -236,6 +240,7 @@ class BiomeOptions:
236
240
  assist: typing.Optional[builtins.bool] = None,
237
241
  biome_config: typing.Optional[typing.Union[_BiomeConfiguration_dd1a6c83, typing.Dict[builtins.str, typing.Any]]] = None,
238
242
  formatter: typing.Optional[builtins.bool] = None,
243
+ ignore_generated_files: typing.Optional[builtins.bool] = None,
239
244
  linter: typing.Optional[builtins.bool] = None,
240
245
  merge_arrays_in_configuration: typing.Optional[builtins.bool] = None,
241
246
  version: typing.Optional[builtins.str] = None,
@@ -244,6 +249,7 @@ class BiomeOptions:
244
249
  :param assist: (experimental) Enable code assist with recommended actions. Default: true
245
250
  :param biome_config: (experimental) Full Biome configuration. This configuration dictates the final outcome if value is set. For example, if the linter is disabled at the top-level, it can be enabled with ``biomeConfig.linter.enabled``.
246
251
  :param formatter: (experimental) Enable code formatter with recommended settings. Default: true
252
+ :param ignore_generated_files: (experimental) Automatically ignore all generated files. This prevents Biome from trying to format or lint files that are marked as generated, which would fail since generated files are typically read-only. Default: true
247
253
  :param linter: (experimental) Enable linting with recommended rules. Default: true
248
254
  :param merge_arrays_in_configuration: (experimental) Should arrays be merged or overwritten when creating Biome configuration. By default arrays are merged and duplicate values are removed Default: true
249
255
  :param version: (experimental) Version of Biome to use. Default: "^2"
@@ -257,6 +263,7 @@ class BiomeOptions:
257
263
  check_type(argname="argument assist", value=assist, expected_type=type_hints["assist"])
258
264
  check_type(argname="argument biome_config", value=biome_config, expected_type=type_hints["biome_config"])
259
265
  check_type(argname="argument formatter", value=formatter, expected_type=type_hints["formatter"])
266
+ check_type(argname="argument ignore_generated_files", value=ignore_generated_files, expected_type=type_hints["ignore_generated_files"])
260
267
  check_type(argname="argument linter", value=linter, expected_type=type_hints["linter"])
261
268
  check_type(argname="argument merge_arrays_in_configuration", value=merge_arrays_in_configuration, expected_type=type_hints["merge_arrays_in_configuration"])
262
269
  check_type(argname="argument version", value=version, expected_type=type_hints["version"])
@@ -267,6 +274,8 @@ class BiomeOptions:
267
274
  self._values["biome_config"] = biome_config
268
275
  if formatter is not None:
269
276
  self._values["formatter"] = formatter
277
+ if ignore_generated_files is not None:
278
+ self._values["ignore_generated_files"] = ignore_generated_files
270
279
  if linter is not None:
271
280
  self._values["linter"] = linter
272
281
  if merge_arrays_in_configuration is not None:
@@ -308,6 +317,20 @@ class BiomeOptions:
308
317
  result = self._values.get("formatter")
309
318
  return typing.cast(typing.Optional[builtins.bool], result)
310
319
 
320
+ @builtins.property
321
+ def ignore_generated_files(self) -> typing.Optional[builtins.bool]:
322
+ '''(experimental) Automatically ignore all generated files.
323
+
324
+ This prevents Biome from trying to format or lint files that are marked as generated,
325
+ which would fail since generated files are typically read-only.
326
+
327
+ :default: true
328
+
329
+ :stability: experimental
330
+ '''
331
+ result = self._values.get("ignore_generated_files")
332
+ return typing.cast(typing.Optional[builtins.bool], result)
333
+
311
334
  @builtins.property
312
335
  def linter(self) -> typing.Optional[builtins.bool]:
313
336
  '''(experimental) Enable linting with recommended rules.
@@ -4250,6 +4273,7 @@ class NodePackage(
4250
4273
  npm_registry: typing.Optional[builtins.str] = None,
4251
4274
  npm_registry_url: typing.Optional[builtins.str] = None,
4252
4275
  npm_token_secret: typing.Optional[builtins.str] = None,
4276
+ npm_trusted_publishing: typing.Optional[builtins.bool] = None,
4253
4277
  package_manager: typing.Optional["NodePackageManager"] = None,
4254
4278
  package_name: typing.Optional[builtins.str] = None,
4255
4279
  peer_dependency_options: typing.Optional[typing.Union["PeerDependencyOptions", typing.Dict[builtins.str, typing.Any]]] = None,
@@ -4291,6 +4315,7 @@ class NodePackage(
4291
4315
  :param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
4292
4316
  :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"
4293
4317
  :param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
4318
+ :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
4294
4319
  :param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
4295
4320
  :param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
4296
4321
  :param peer_dependency_options: (experimental) Options for ``peerDeps``.
@@ -4336,6 +4361,7 @@ class NodePackage(
4336
4361
  npm_registry=npm_registry,
4337
4362
  npm_registry_url=npm_registry_url,
4338
4363
  npm_token_secret=npm_token_secret,
4364
+ npm_trusted_publishing=npm_trusted_publishing,
4339
4365
  package_manager=package_manager,
4340
4366
  package_name=package_name,
4341
4367
  peer_dependency_options=peer_dependency_options,
@@ -4904,6 +4930,7 @@ class NodePackageManager(enum.Enum):
4904
4930
  "npm_registry": "npmRegistry",
4905
4931
  "npm_registry_url": "npmRegistryUrl",
4906
4932
  "npm_token_secret": "npmTokenSecret",
4933
+ "npm_trusted_publishing": "npmTrustedPublishing",
4907
4934
  "package_manager": "packageManager",
4908
4935
  "package_name": "packageName",
4909
4936
  "peer_dependency_options": "peerDependencyOptions",
@@ -4948,6 +4975,7 @@ class NodePackageOptions:
4948
4975
  npm_registry: typing.Optional[builtins.str] = None,
4949
4976
  npm_registry_url: typing.Optional[builtins.str] = None,
4950
4977
  npm_token_secret: typing.Optional[builtins.str] = None,
4978
+ npm_trusted_publishing: typing.Optional[builtins.bool] = None,
4951
4979
  package_manager: typing.Optional[NodePackageManager] = None,
4952
4980
  package_name: typing.Optional[builtins.str] = None,
4953
4981
  peer_dependency_options: typing.Optional[typing.Union["PeerDependencyOptions", typing.Dict[builtins.str, typing.Any]]] = None,
@@ -4988,6 +5016,7 @@ class NodePackageOptions:
4988
5016
  :param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
4989
5017
  :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"
4990
5018
  :param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
5019
+ :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
4991
5020
  :param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
4992
5021
  :param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
4993
5022
  :param peer_dependency_options: (experimental) Options for ``peerDeps``.
@@ -5037,6 +5066,7 @@ class NodePackageOptions:
5037
5066
  check_type(argname="argument npm_registry", value=npm_registry, expected_type=type_hints["npm_registry"])
5038
5067
  check_type(argname="argument npm_registry_url", value=npm_registry_url, expected_type=type_hints["npm_registry_url"])
5039
5068
  check_type(argname="argument npm_token_secret", value=npm_token_secret, expected_type=type_hints["npm_token_secret"])
5069
+ check_type(argname="argument npm_trusted_publishing", value=npm_trusted_publishing, expected_type=type_hints["npm_trusted_publishing"])
5040
5070
  check_type(argname="argument package_manager", value=package_manager, expected_type=type_hints["package_manager"])
5041
5071
  check_type(argname="argument package_name", value=package_name, expected_type=type_hints["package_name"])
5042
5072
  check_type(argname="argument peer_dependency_options", value=peer_dependency_options, expected_type=type_hints["peer_dependency_options"])
@@ -5103,6 +5133,8 @@ class NodePackageOptions:
5103
5133
  self._values["npm_registry_url"] = npm_registry_url
5104
5134
  if npm_token_secret is not None:
5105
5135
  self._values["npm_token_secret"] = npm_token_secret
5136
+ if npm_trusted_publishing is not None:
5137
+ self._values["npm_trusted_publishing"] = npm_trusted_publishing
5106
5138
  if package_manager is not None:
5107
5139
  self._values["package_manager"] = package_manager
5108
5140
  if package_name is not None:
@@ -5489,6 +5521,17 @@ class NodePackageOptions:
5489
5521
  result = self._values.get("npm_token_secret")
5490
5522
  return typing.cast(typing.Optional[builtins.str], result)
5491
5523
 
5524
+ @builtins.property
5525
+ def npm_trusted_publishing(self) -> typing.Optional[builtins.bool]:
5526
+ '''(experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work.
5527
+
5528
+ :default: - false
5529
+
5530
+ :stability: experimental
5531
+ '''
5532
+ result = self._values.get("npm_trusted_publishing")
5533
+ return typing.cast(typing.Optional[builtins.bool], result)
5534
+
5492
5535
  @builtins.property
5493
5536
  def package_manager(self) -> typing.Optional[NodePackageManager]:
5494
5537
  '''(experimental) The Node Package Manager used to execute scripts.
@@ -5738,6 +5781,7 @@ class NodeProject(
5738
5781
  npm_registry: typing.Optional[builtins.str] = None,
5739
5782
  npm_registry_url: typing.Optional[builtins.str] = None,
5740
5783
  npm_token_secret: typing.Optional[builtins.str] = None,
5784
+ npm_trusted_publishing: typing.Optional[builtins.bool] = None,
5741
5785
  package_manager: typing.Optional[NodePackageManager] = None,
5742
5786
  package_name: typing.Optional[builtins.str] = None,
5743
5787
  peer_dependency_options: typing.Optional[typing.Union["PeerDependencyOptions", typing.Dict[builtins.str, typing.Any]]] = None,
@@ -5761,6 +5805,7 @@ class NodeProject(
5761
5805
  publish_tasks: typing.Optional[builtins.bool] = None,
5762
5806
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
5763
5807
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
5808
+ release_environment: typing.Optional[builtins.str] = None,
5764
5809
  release_every_commit: typing.Optional[builtins.bool] = None,
5765
5810
  release_failure_issue: typing.Optional[builtins.bool] = None,
5766
5811
  release_failure_issue_label: typing.Optional[builtins.str] = None,
@@ -5872,6 +5917,7 @@ class NodeProject(
5872
5917
  :param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
5873
5918
  :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"
5874
5919
  :param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
5920
+ :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
5875
5921
  :param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
5876
5922
  :param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
5877
5923
  :param peer_dependency_options: (experimental) Options for ``peerDeps``.
@@ -5895,6 +5941,7 @@ class NodeProject(
5895
5941
  :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
5896
5942
  :param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
5897
5943
  :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.
5944
+ :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
5898
5945
  :param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
5899
5946
  :param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
5900
5947
  :param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
@@ -6008,6 +6055,7 @@ class NodeProject(
6008
6055
  npm_registry=npm_registry,
6009
6056
  npm_registry_url=npm_registry_url,
6010
6057
  npm_token_secret=npm_token_secret,
6058
+ npm_trusted_publishing=npm_trusted_publishing,
6011
6059
  package_manager=package_manager,
6012
6060
  package_name=package_name,
6013
6061
  peer_dependency_options=peer_dependency_options,
@@ -6031,6 +6079,7 @@ class NodeProject(
6031
6079
  publish_tasks=publish_tasks,
6032
6080
  releasable_commits=releasable_commits,
6033
6081
  release_branches=release_branches,
6082
+ release_environment=release_environment,
6034
6083
  release_every_commit=release_every_commit,
6035
6084
  release_failure_issue=release_failure_issue,
6036
6085
  release_failure_issue_label=release_failure_issue_label,
@@ -6598,6 +6647,7 @@ class NodeProject(
6598
6647
  "npm_registry": "npmRegistry",
6599
6648
  "npm_registry_url": "npmRegistryUrl",
6600
6649
  "npm_token_secret": "npmTokenSecret",
6650
+ "npm_trusted_publishing": "npmTrustedPublishing",
6601
6651
  "package_manager": "packageManager",
6602
6652
  "package_name": "packageName",
6603
6653
  "peer_dependency_options": "peerDependencyOptions",
@@ -6621,6 +6671,7 @@ class NodeProject(
6621
6671
  "publish_tasks": "publishTasks",
6622
6672
  "releasable_commits": "releasableCommits",
6623
6673
  "release_branches": "releaseBranches",
6674
+ "release_environment": "releaseEnvironment",
6624
6675
  "release_every_commit": "releaseEveryCommit",
6625
6676
  "release_failure_issue": "releaseFailureIssue",
6626
6677
  "release_failure_issue_label": "releaseFailureIssueLabel",
@@ -6740,6 +6791,7 @@ class NodeProjectOptions(
6740
6791
  npm_registry: typing.Optional[builtins.str] = None,
6741
6792
  npm_registry_url: typing.Optional[builtins.str] = None,
6742
6793
  npm_token_secret: typing.Optional[builtins.str] = None,
6794
+ npm_trusted_publishing: typing.Optional[builtins.bool] = None,
6743
6795
  package_manager: typing.Optional[NodePackageManager] = None,
6744
6796
  package_name: typing.Optional[builtins.str] = None,
6745
6797
  peer_dependency_options: typing.Optional[typing.Union["PeerDependencyOptions", typing.Dict[builtins.str, typing.Any]]] = None,
@@ -6763,6 +6815,7 @@ class NodeProjectOptions(
6763
6815
  publish_tasks: typing.Optional[builtins.bool] = None,
6764
6816
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
6765
6817
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
6818
+ release_environment: typing.Optional[builtins.str] = None,
6766
6819
  release_every_commit: typing.Optional[builtins.bool] = None,
6767
6820
  release_failure_issue: typing.Optional[builtins.bool] = None,
6768
6821
  release_failure_issue_label: typing.Optional[builtins.str] = None,
@@ -6874,6 +6927,7 @@ class NodeProjectOptions(
6874
6927
  :param npm_registry: (deprecated) The host name of the npm registry to publish to. Cannot be set together with ``npmRegistryUrl``.
6875
6928
  :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"
6876
6929
  :param npm_token_secret: (experimental) GitHub secret which contains the NPM token to use when publishing packages. Default: "NPM_TOKEN"
6930
+ :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
6877
6931
  :param package_manager: (experimental) The Node Package Manager used to execute scripts. Default: NodePackageManager.YARN_CLASSIC
6878
6932
  :param package_name: (experimental) The "name" in package.json. Default: - defaults to project name
6879
6933
  :param peer_dependency_options: (experimental) Options for ``peerDeps``.
@@ -6897,6 +6951,7 @@ class NodeProjectOptions(
6897
6951
  :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
6898
6952
  :param releasable_commits: (experimental) Find commits that should be considered releasable Used to decide if a release is required. Default: ReleasableCommits.everyCommit()
6899
6953
  :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.
6954
+ :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
6900
6955
  :param release_every_commit: (deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``. Default: true
6901
6956
  :param release_failure_issue: (experimental) Create a github issue on every failed publishing task. Default: false
6902
6957
  :param release_failure_issue_label: (experimental) The label to apply to issues indicating publish failures. Only applies if ``releaseFailureIssue`` is true. Default: "failed-release"
@@ -7065,6 +7120,7 @@ class NodeProjectOptions(
7065
7120
  check_type(argname="argument npm_registry", value=npm_registry, expected_type=type_hints["npm_registry"])
7066
7121
  check_type(argname="argument npm_registry_url", value=npm_registry_url, expected_type=type_hints["npm_registry_url"])
7067
7122
  check_type(argname="argument npm_token_secret", value=npm_token_secret, expected_type=type_hints["npm_token_secret"])
7123
+ check_type(argname="argument npm_trusted_publishing", value=npm_trusted_publishing, expected_type=type_hints["npm_trusted_publishing"])
7068
7124
  check_type(argname="argument package_manager", value=package_manager, expected_type=type_hints["package_manager"])
7069
7125
  check_type(argname="argument package_name", value=package_name, expected_type=type_hints["package_name"])
7070
7126
  check_type(argname="argument peer_dependency_options", value=peer_dependency_options, expected_type=type_hints["peer_dependency_options"])
@@ -7088,6 +7144,7 @@ class NodeProjectOptions(
7088
7144
  check_type(argname="argument publish_tasks", value=publish_tasks, expected_type=type_hints["publish_tasks"])
7089
7145
  check_type(argname="argument releasable_commits", value=releasable_commits, expected_type=type_hints["releasable_commits"])
7090
7146
  check_type(argname="argument release_branches", value=release_branches, expected_type=type_hints["release_branches"])
7147
+ check_type(argname="argument release_environment", value=release_environment, expected_type=type_hints["release_environment"])
7091
7148
  check_type(argname="argument release_every_commit", value=release_every_commit, expected_type=type_hints["release_every_commit"])
7092
7149
  check_type(argname="argument release_failure_issue", value=release_failure_issue, expected_type=type_hints["release_failure_issue"])
7093
7150
  check_type(argname="argument release_failure_issue_label", value=release_failure_issue_label, expected_type=type_hints["release_failure_issue_label"])
@@ -7255,6 +7312,8 @@ class NodeProjectOptions(
7255
7312
  self._values["npm_registry_url"] = npm_registry_url
7256
7313
  if npm_token_secret is not None:
7257
7314
  self._values["npm_token_secret"] = npm_token_secret
7315
+ if npm_trusted_publishing is not None:
7316
+ self._values["npm_trusted_publishing"] = npm_trusted_publishing
7258
7317
  if package_manager is not None:
7259
7318
  self._values["package_manager"] = package_manager
7260
7319
  if package_name is not None:
@@ -7301,6 +7360,8 @@ class NodeProjectOptions(
7301
7360
  self._values["releasable_commits"] = releasable_commits
7302
7361
  if release_branches is not None:
7303
7362
  self._values["release_branches"] = release_branches
7363
+ if release_environment is not None:
7364
+ self._values["release_environment"] = release_environment
7304
7365
  if release_every_commit is not None:
7305
7366
  self._values["release_every_commit"] = release_every_commit
7306
7367
  if release_failure_issue is not None:
@@ -8121,6 +8182,17 @@ class NodeProjectOptions(
8121
8182
  result = self._values.get("npm_token_secret")
8122
8183
  return typing.cast(typing.Optional[builtins.str], result)
8123
8184
 
8185
+ @builtins.property
8186
+ def npm_trusted_publishing(self) -> typing.Optional[builtins.bool]:
8187
+ '''(experimental) Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work.
8188
+
8189
+ :default: - false
8190
+
8191
+ :stability: experimental
8192
+ '''
8193
+ result = self._values.get("npm_trusted_publishing")
8194
+ return typing.cast(typing.Optional[builtins.bool], result)
8195
+
8124
8196
  @builtins.property
8125
8197
  def package_manager(self) -> typing.Optional[NodePackageManager]:
8126
8198
  '''(experimental) The Node Package Manager used to execute scripts.
@@ -8438,6 +8510,23 @@ class NodeProjectOptions(
8438
8510
  result = self._values.get("release_branches")
8439
8511
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, _BranchOptions_13663d08]], result)
8440
8512
 
8513
+ @builtins.property
8514
+ def release_environment(self) -> typing.Optional[builtins.str]:
8515
+ '''(experimental) The GitHub Actions environment used for the release.
8516
+
8517
+ This can be used to add an explicit approval step to the release
8518
+ or limit who can initiate a release through environment protection rules.
8519
+
8520
+ When multiple artifacts are released, the environment can be overwritten
8521
+ on a per artifact basis.
8522
+
8523
+ :default: - no environment used, unless set at the artifact level
8524
+
8525
+ :stability: experimental
8526
+ '''
8527
+ result = self._values.get("release_environment")
8528
+ return typing.cast(typing.Optional[builtins.str], result)
8529
+
8441
8530
  @builtins.property
8442
8531
  def release_every_commit(self) -> typing.Optional[builtins.bool]:
8443
8532
  '''(deprecated) Automatically release new versions every commit to one of branches in ``releaseBranches``.
@@ -16136,6 +16225,7 @@ def _typecheckingstub__9f2264088409136f62af7e2ac4488206c06c3b9a69056be8b9ead20ab
16136
16225
  assist: typing.Optional[builtins.bool] = None,
16137
16226
  biome_config: typing.Optional[typing.Union[_BiomeConfiguration_dd1a6c83, typing.Dict[builtins.str, typing.Any]]] = None,
16138
16227
  formatter: typing.Optional[builtins.bool] = None,
16228
+ ignore_generated_files: typing.Optional[builtins.bool] = None,
16139
16229
  linter: typing.Optional[builtins.bool] = None,
16140
16230
  merge_arrays_in_configuration: typing.Optional[builtins.bool] = None,
16141
16231
  version: typing.Optional[builtins.str] = None,
@@ -16160,6 +16250,7 @@ def _typecheckingstub__b53a2988afa9afc23bda2fe96e2de8ffaff18ab919e00b69a6c8d3d22
16160
16250
  assist: typing.Optional[builtins.bool] = None,
16161
16251
  biome_config: typing.Optional[typing.Union[_BiomeConfiguration_dd1a6c83, typing.Dict[builtins.str, typing.Any]]] = None,
16162
16252
  formatter: typing.Optional[builtins.bool] = None,
16253
+ ignore_generated_files: typing.Optional[builtins.bool] = None,
16163
16254
  linter: typing.Optional[builtins.bool] = None,
16164
16255
  merge_arrays_in_configuration: typing.Optional[builtins.bool] = None,
16165
16256
  version: typing.Optional[builtins.str] = None,
@@ -16639,6 +16730,7 @@ def _typecheckingstub__d10cd20471c8ed8e2de153476379f00bfa1b587c92e8982006812a0e3
16639
16730
  npm_registry: typing.Optional[builtins.str] = None,
16640
16731
  npm_registry_url: typing.Optional[builtins.str] = None,
16641
16732
  npm_token_secret: typing.Optional[builtins.str] = None,
16733
+ npm_trusted_publishing: typing.Optional[builtins.bool] = None,
16642
16734
  package_manager: typing.Optional[NodePackageManager] = None,
16643
16735
  package_name: typing.Optional[builtins.str] = None,
16644
16736
  peer_dependency_options: typing.Optional[typing.Union[PeerDependencyOptions, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -16776,6 +16868,7 @@ def _typecheckingstub__32555a77b63910142de45100c4a6d74880ddece00a3cbae9c27803467
16776
16868
  npm_registry: typing.Optional[builtins.str] = None,
16777
16869
  npm_registry_url: typing.Optional[builtins.str] = None,
16778
16870
  npm_token_secret: typing.Optional[builtins.str] = None,
16871
+ npm_trusted_publishing: typing.Optional[builtins.bool] = None,
16779
16872
  package_manager: typing.Optional[NodePackageManager] = None,
16780
16873
  package_name: typing.Optional[builtins.str] = None,
16781
16874
  peer_dependency_options: typing.Optional[typing.Union[PeerDependencyOptions, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -16940,6 +17033,7 @@ def _typecheckingstub__05c2eb8aa04095bbe6af788737363089516ccd341e3a6624f153e8ff7
16940
17033
  npm_registry: typing.Optional[builtins.str] = None,
16941
17034
  npm_registry_url: typing.Optional[builtins.str] = None,
16942
17035
  npm_token_secret: typing.Optional[builtins.str] = None,
17036
+ npm_trusted_publishing: typing.Optional[builtins.bool] = None,
16943
17037
  package_manager: typing.Optional[NodePackageManager] = None,
16944
17038
  package_name: typing.Optional[builtins.str] = None,
16945
17039
  peer_dependency_options: typing.Optional[typing.Union[PeerDependencyOptions, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -16963,6 +17057,7 @@ def _typecheckingstub__05c2eb8aa04095bbe6af788737363089516ccd341e3a6624f153e8ff7
16963
17057
  publish_tasks: typing.Optional[builtins.bool] = None,
16964
17058
  releasable_commits: typing.Optional[_ReleasableCommits_d481ce10] = None,
16965
17059
  release_branches: typing.Optional[typing.Mapping[builtins.str, typing.Union[_BranchOptions_13663d08, typing.Dict[builtins.str, typing.Any]]]] = None,
17060
+ release_environment: typing.Optional[builtins.str] = None,
16966
17061
  release_every_commit: typing.Optional[builtins.bool] = None,
16967
17062
  release_failure_issue: typing.Optional[builtins.bool] = None,
16968
17063
  release_failure_issue_label: typing.Optional[builtins.str] = None,