projen 0.52.21 → 0.52.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +139 -107
- package/changelog.md +3 -3
- package/docs/api/API.md +42 -39
- package/lib/awscdk/auto-discover.d.ts +14 -46
- package/lib/awscdk/auto-discover.js +8 -22
- package/lib/awscdk/awscdk-app-java.d.ts +10 -32
- package/lib/awscdk/awscdk-app-java.js +5 -9
- package/lib/awscdk/awscdk-app-ts.d.ts +15 -35
- package/lib/awscdk/awscdk-app-ts.js +6 -14
- package/lib/awscdk/awscdk-construct.d.ts +14 -28
- package/lib/awscdk/awscdk-construct.js +8 -16
- package/lib/awscdk/awscdk-deps-java.d.ts +1 -8
- package/lib/awscdk/awscdk-deps-java.js +3 -10
- package/lib/awscdk/awscdk-deps-js.d.ts +1 -8
- package/lib/awscdk/awscdk-deps-js.js +3 -10
- package/lib/awscdk/awscdk-deps.d.ts +28 -67
- package/lib/awscdk/awscdk-deps.js +5 -12
- package/lib/awscdk/cdk-config.d.ts +19 -51
- package/lib/awscdk/cdk-config.js +13 -11
- package/lib/awscdk/cdk-tasks.d.ts +7 -24
- package/lib/awscdk/cdk-tasks.js +3 -8
- package/lib/awscdk/integration-test.d.ts +7 -29
- package/lib/awscdk/integration-test.js +3 -8
- package/lib/awscdk/lambda-function.d.ts +22 -50
- package/lib/awscdk/lambda-function.js +11 -24
- package/lib/build/build-workflow.d.ts +33 -78
- package/lib/build/build-workflow.js +15 -25
- package/lib/cdk/auto-discover-base.d.ts +11 -34
- package/lib/cdk/auto-discover-base.js +5 -15
- package/lib/cdk/construct-lib.d.ts +8 -22
- package/lib/cdk/construct-lib.js +3 -8
- package/lib/cdk/integration-test-base.d.ts +12 -38
- package/lib/cdk/integration-test-base.js +2 -8
- package/lib/cdk/jsii-docgen.d.ts +6 -12
- package/lib/cdk/jsii-docgen.js +6 -8
- package/lib/cdk/jsii-project.d.ts +16 -95
- package/lib/cdk/jsii-project.js +3 -10
- package/lib/cdk8s/auto-discover.d.ts +6 -23
- package/lib/cdk8s/auto-discover.js +6 -15
- package/lib/cdk8s/cdk8s-app-ts.d.ts +21 -43
- package/lib/cdk8s/cdk8s-app-ts.js +4 -7
- package/lib/cdk8s/cdk8s-construct.d.ts +12 -27
- package/lib/cdk8s/cdk8s-construct.js +3 -7
- package/lib/cdk8s/integration-test.d.ts +2 -9
- package/lib/cdk8s/integration-test.js +3 -8
- package/lib/cdktf/cdktf-construct.d.ts +3 -12
- package/lib/cdktf/cdktf-construct.js +3 -7
- package/lib/component.d.ts +4 -17
- package/lib/component.js +6 -19
- package/lib/dependencies.d.ts +44 -77
- package/lib/dependencies.js +50 -38
- package/lib/dev-env.d.ts +26 -53
- package/lib/dev-env.js +9 -19
- package/lib/docker-compose.d.ts +83 -209
- package/lib/docker-compose.js +38 -61
- package/lib/file.d.ts +24 -71
- package/lib/file.js +4 -16
- package/lib/gitattributes.d.ts +3 -14
- package/lib/gitattributes.js +5 -16
- package/lib/github/auto-approve.d.ts +7 -23
- package/lib/github/auto-approve.js +3 -8
- package/lib/github/auto-merge.d.ts +7 -29
- package/lib/github/auto-merge.js +7 -16
- package/lib/github/dependabot.d.ts +54 -147
- package/lib/github/dependabot.js +81 -22
- package/lib/github/github-project.d.ts +26 -70
- package/lib/github/github-project.js +5 -10
- package/lib/github/github.d.ts +19 -58
- package/lib/github/github.js +9 -30
- package/lib/github/mergify.d.ts +9 -54
- package/lib/github/mergify.js +2 -14
- package/lib/github/pr-template.d.ts +3 -13
- package/lib/github/pr-template.js +3 -8
- package/lib/github/pull-request-lint.d.ts +8 -28
- package/lib/github/pull-request-lint.js +3 -9
- package/lib/github/stale.d.ts +17 -47
- package/lib/github/stale.js +6 -10
- package/lib/github/task-workflow.d.ts +21 -63
- package/lib/github/task-workflow.js +3 -8
- package/lib/github/workflows-model.d.ts +199 -582
- package/lib/github/workflows-model.js +5 -4
- package/lib/github/workflows.d.ts +14 -41
- package/lib/github/workflows.js +8 -16
- package/lib/gitlab/configuration-model.d.ts +145 -947
- package/lib/gitlab/configuration-model.js +11 -28
- package/lib/gitlab/configuration.d.ts +31 -121
- package/lib/gitlab/configuration.js +14 -49
- package/lib/gitlab/gitlab-configuration.d.ts +2 -13
- package/lib/gitlab/gitlab-configuration.js +4 -15
- package/lib/gitlab/nested-configuration.d.ts +1 -9
- package/lib/gitlab/nested-configuration.js +3 -8
- package/lib/gitpod.d.ts +71 -167
- package/lib/gitpod.js +75 -42
- package/lib/ignore-file.d.ts +4 -23
- package/lib/ignore-file.js +6 -25
- package/lib/ini.d.ts +2 -14
- package/lib/ini.js +3 -13
- package/lib/java/java-project.d.ts +29 -70
- package/lib/java/java-project.js +10 -17
- package/lib/java/junit.d.ts +5 -17
- package/lib/java/junit.js +3 -8
- package/lib/java/maven-compile.d.ts +4 -13
- package/lib/java/maven-compile.js +3 -8
- package/lib/java/maven-packaging.d.ts +6 -21
- package/lib/java/maven-packaging.js +3 -8
- package/lib/java/maven-sample.d.ts +2 -12
- package/lib/java/maven-sample.js +3 -8
- package/lib/java/pom.d.ts +38 -100
- package/lib/java/pom.js +13 -25
- package/lib/java/projenrc.d.ts +7 -22
- package/lib/java/projenrc.js +3 -8
- package/lib/javascript/bundler.d.ts +30 -72
- package/lib/javascript/bundler.js +13 -21
- package/lib/javascript/eslint.d.ts +27 -84
- package/lib/javascript/eslint.js +11 -30
- package/lib/javascript/jest.d.ts +91 -344
- package/lib/javascript/jest.js +6 -23
- package/lib/javascript/node-package.d.ts +111 -259
- package/lib/javascript/node-package.js +64 -81
- package/lib/javascript/node-project.d.ts +112 -220
- package/lib/javascript/node-project.js +54 -73
- package/lib/javascript/npm-config.d.ts +9 -19
- package/lib/javascript/npm-config.js +9 -16
- package/lib/javascript/prettier.d.ts +65 -196
- package/lib/javascript/prettier.js +70 -46
- package/lib/javascript/projenrc.d.ts +2 -12
- package/lib/javascript/projenrc.js +3 -8
- package/lib/javascript/typescript-config.d.ts +62 -158
- package/lib/javascript/typescript-config.js +31 -18
- package/lib/javascript/upgrade-dependencies.d.ts +35 -94
- package/lib/javascript/upgrade-dependencies.js +21 -51
- package/lib/json.d.ts +3 -17
- package/lib/json.js +3 -13
- package/lib/license.d.ts +3 -20
- package/lib/license.js +2 -13
- package/lib/logger.d.ts +18 -62
- package/lib/logger.js +17 -37
- package/lib/makefile.d.ts +14 -45
- package/lib/makefile.js +7 -25
- package/lib/object-file.d.ts +19 -39
- package/lib/object-file.js +17 -28
- package/lib/option-hints.d.ts +4 -13
- package/lib/option-hints.js +11 -5
- package/lib/project-build.d.ts +7 -26
- package/lib/project-build.js +3 -8
- package/lib/project.d.ts +64 -186
- package/lib/project.js +43 -91
- package/lib/projects.d.ts +11 -32
- package/lib/projects.js +4 -8
- package/lib/projenrc-json.d.ts +2 -12
- package/lib/projenrc-json.js +3 -8
- package/lib/python/pip.d.ts +7 -23
- package/lib/python/pip.js +8 -17
- package/lib/python/poetry.d.ts +36 -121
- package/lib/python/poetry.js +12 -26
- package/lib/python/projenrc.d.ts +4 -15
- package/lib/python/projenrc.js +3 -8
- package/lib/python/pytest.d.ts +3 -16
- package/lib/python/pytest.js +2 -8
- package/lib/python/python-deps.d.ts +7 -21
- package/lib/python/python-deps.js +1 -1
- package/lib/python/python-env.d.ts +1 -6
- package/lib/python/python-env.js +1 -1
- package/lib/python/python-packaging.d.ts +12 -34
- package/lib/python/python-packaging.js +1 -1
- package/lib/python/python-project.d.ts +34 -79
- package/lib/python/python-project.js +7 -20
- package/lib/python/python-sample.d.ts +2 -9
- package/lib/python/python-sample.js +3 -8
- package/lib/python/requirements-file.d.ts +4 -19
- package/lib/python/requirements-file.js +5 -15
- package/lib/python/setuppy.d.ts +11 -39
- package/lib/python/setuppy.js +3 -13
- package/lib/python/setuptools.d.ts +2 -14
- package/lib/python/setuptools.js +3 -8
- package/lib/python/venv.d.ts +4 -14
- package/lib/python/venv.js +4 -11
- package/lib/readme.d.ts +7 -16
- package/lib/readme.js +5 -7
- package/lib/release/publisher.d.ts +103 -206
- package/lib/release/publisher.js +47 -59
- package/lib/release/release-trigger.d.ts +16 -48
- package/lib/release/release-trigger.js +8 -18
- package/lib/release/release.d.ts +50 -110
- package/lib/release/release.js +9 -24
- package/lib/run-task.js +1820 -0
- package/lib/sample-file.d.ts +14 -47
- package/lib/sample-file.js +9 -30
- package/lib/semver.d.ts +4 -21
- package/lib/semver.js +6 -20
- package/lib/source-code.d.ts +7 -23
- package/lib/source-code.js +7 -19
- package/lib/task-model.d.ts +21 -61
- package/lib/task-model.js +1 -1
- package/lib/task-runtime.d.ts +7 -24
- package/lib/task-runtime.js +7 -20
- package/lib/task.d.ts +29 -73
- package/lib/task.js +28 -61
- package/lib/tasks.d.ts +12 -34
- package/lib/tasks.js +14 -36
- package/lib/testing.d.ts +6 -10
- package/lib/testing.js +8 -12
- package/lib/textfile.d.ts +9 -24
- package/lib/textfile.js +9 -19
- package/lib/toml.d.ts +2 -14
- package/lib/toml.js +3 -13
- package/lib/typescript/projenrc.d.ts +4 -14
- package/lib/typescript/projenrc.js +3 -8
- package/lib/typescript/typescript-typedoc.d.ts +1 -6
- package/lib/typescript/typescript-typedoc.js +3 -8
- package/lib/typescript/typescript.d.ts +24 -82
- package/lib/typescript/typescript.js +6 -15
- package/lib/version.d.ts +9 -38
- package/lib/version.js +2 -11
- package/lib/vscode/devcontainer.d.ts +10 -30
- package/lib/vscode/devcontainer.js +10 -26
- package/lib/vscode/launch-config.d.ts +18 -97
- package/lib/vscode/launch-config.js +9 -15
- package/lib/vscode/vscode.d.ts +0 -9
- package/lib/vscode/vscode.js +2 -11
- package/lib/web/next.d.ts +19 -60
- package/lib/web/next.js +6 -20
- package/lib/web/postcss.d.ts +3 -24
- package/lib/web/postcss.js +3 -8
- package/lib/web/react.d.ts +13 -60
- package/lib/web/react.js +7 -32
- package/lib/web/tailwind.d.ts +1 -15
- package/lib/web/tailwind.js +3 -7
- package/lib/xmlfile.d.ts +2 -14
- package/lib/xmlfile.js +3 -13
- package/lib/yaml.d.ts +4 -19
- package/lib/yaml.js +3 -13
- package/package.json +5 -5
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
|
@@ -3,110 +3,85 @@ import { Job, JobStep, Tools } from "../github/workflows-model";
|
|
|
3
3
|
import { Project } from "../project";
|
|
4
4
|
import { BranchOptions } from "./release";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @experimental
|
|
6
|
+
* Options for `Publisher`.
|
|
9
7
|
*/
|
|
10
8
|
export interface PublisherOptions {
|
|
11
9
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* All publish jobs will take a dependency on this job.
|
|
15
|
-
*
|
|
16
|
-
* @experimental
|
|
10
|
+
* The job ID that produces the build artifacts. All publish jobs will take a dependency on this job.
|
|
17
11
|
*/
|
|
18
12
|
readonly buildJobId: string;
|
|
19
13
|
/**
|
|
20
|
-
*
|
|
14
|
+
* A GitHub workflow expression used as a condition for publishers.
|
|
21
15
|
*
|
|
22
16
|
* @default - no condition
|
|
23
|
-
* @experimental
|
|
24
17
|
*/
|
|
25
18
|
readonly condition?: string;
|
|
26
19
|
/**
|
|
27
|
-
*
|
|
20
|
+
* The name of the artifact to download (e.g. `dist`).
|
|
28
21
|
*
|
|
29
22
|
* The artifact is expected to include a subdirectory for each release target:
|
|
30
23
|
* `go` (GitHub), `dotnet` (NuGet), `java` (Maven), `js` (npm), `python`
|
|
31
24
|
* (PyPI).
|
|
32
25
|
*
|
|
33
|
-
* @see https://github.com/aws/
|
|
34
|
-
* @experimental
|
|
26
|
+
* @see https://github.com/aws/publib
|
|
35
27
|
*/
|
|
36
28
|
readonly artifactName: string;
|
|
37
29
|
/**
|
|
38
|
-
*
|
|
30
|
+
* @deprecated use `publibVersion` instead
|
|
31
|
+
*/
|
|
32
|
+
readonly jsiiReleaseVersion?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Version requirement for `publib`.
|
|
39
35
|
*
|
|
40
36
|
* @default "latest"
|
|
41
|
-
* @experimental
|
|
42
37
|
*/
|
|
43
|
-
readonly
|
|
38
|
+
readonly publibVersion?: string;
|
|
44
39
|
/**
|
|
45
|
-
*
|
|
40
|
+
* Create an issue when a publish task fails.
|
|
46
41
|
*
|
|
47
42
|
* @default false
|
|
48
|
-
* @experimental
|
|
49
43
|
*/
|
|
50
44
|
readonly failureIssue?: boolean;
|
|
51
45
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
46
|
+
* The label to apply to the issue marking failed publish tasks.
|
|
54
47
|
* Only applies if `failureIssue` is true.
|
|
55
48
|
*
|
|
56
49
|
* @default "failed-release"
|
|
57
|
-
* @experimental
|
|
58
50
|
*/
|
|
59
51
|
readonly failureIssueLabel?: string;
|
|
60
52
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
53
|
+
* Github Runner selection labels
|
|
63
54
|
* @default ["ubuntu-latest"]
|
|
64
|
-
* @experimental
|
|
65
55
|
*/
|
|
66
56
|
readonly workflowRunsOn?: string[];
|
|
67
57
|
/**
|
|
68
|
-
*
|
|
58
|
+
* Define publishing tasks that can be executed manually as well as workflows.
|
|
69
59
|
*
|
|
70
60
|
* Normally, publishing only happens within automated workflows. Enable this
|
|
71
61
|
* in order to create a publishing task for each publishing activity.
|
|
72
62
|
*
|
|
73
63
|
* @default false
|
|
74
|
-
* @experimental
|
|
75
64
|
*/
|
|
76
65
|
readonly publishTasks?: boolean;
|
|
77
66
|
/**
|
|
78
|
-
*
|
|
67
|
+
* Do not actually publish, only print the commands that would be executed instead.
|
|
79
68
|
*
|
|
80
69
|
* Useful if you wish to block all publishing from a single option.
|
|
81
|
-
*
|
|
82
|
-
* @experimental
|
|
83
70
|
*/
|
|
84
71
|
readonly dryRun?: boolean;
|
|
85
72
|
}
|
|
86
73
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* Under the hood, it uses https://github.com/aws/jsii-release
|
|
74
|
+
* Implements GitHub jobs for publishing modules to package managers.
|
|
90
75
|
*
|
|
91
|
-
*
|
|
76
|
+
* Under the hood, it uses https://github.com/aws/publib
|
|
92
77
|
*/
|
|
93
78
|
export declare class Publisher extends Component {
|
|
94
|
-
/**
|
|
95
|
-
* @experimental
|
|
96
|
-
*/
|
|
97
79
|
readonly buildJobId: string;
|
|
98
|
-
/**
|
|
99
|
-
* @experimental
|
|
100
|
-
*/
|
|
101
80
|
readonly artifactName: string;
|
|
102
|
-
|
|
103
|
-
* @experimental
|
|
104
|
-
*/
|
|
105
|
-
readonly jsiiReleaseVersion: string;
|
|
106
|
-
/**
|
|
107
|
-
* @experimental
|
|
108
|
-
*/
|
|
81
|
+
readonly publibVersion: string;
|
|
109
82
|
readonly condition?: string;
|
|
83
|
+
/** @deprecated use `publibVersion` */
|
|
84
|
+
readonly jsiiReleaseVersion: string;
|
|
110
85
|
private readonly failureIssue;
|
|
111
86
|
private readonly failureIssueLabel;
|
|
112
87
|
private readonly runsOn;
|
|
@@ -114,9 +89,6 @@ export declare class Publisher extends Component {
|
|
|
114
89
|
private readonly _jobFactories;
|
|
115
90
|
private readonly _gitHubPrePublishing;
|
|
116
91
|
private readonly dryRun;
|
|
117
|
-
/**
|
|
118
|
-
* @experimental
|
|
119
|
-
*/
|
|
120
92
|
constructor(project: Project, options: PublisherOptions);
|
|
121
93
|
/**
|
|
122
94
|
* Called by `Release` to add the publishing jobs to a release workflow
|
|
@@ -128,88 +100,69 @@ export declare class Publisher extends Component {
|
|
|
128
100
|
*/
|
|
129
101
|
_renderJobsForBranch(branch: string, options: Partial<BranchOptions>): Record<string, Job>;
|
|
130
102
|
/**
|
|
131
|
-
*
|
|
103
|
+
* Adds pre publishing steps for the GitHub release job.
|
|
132
104
|
*
|
|
133
105
|
* @param steps The steps.
|
|
134
|
-
* @experimental
|
|
135
106
|
*/
|
|
136
107
|
addGitHubPrePublishingSteps(...steps: JobStep[]): void;
|
|
137
108
|
/**
|
|
138
|
-
*
|
|
109
|
+
* Publish to git.
|
|
139
110
|
*
|
|
140
111
|
* This includes generating a project-level changelog and release tags.
|
|
141
112
|
*
|
|
142
|
-
* @param options Options
|
|
143
|
-
* @experimental
|
|
113
|
+
* @param options Options
|
|
144
114
|
*/
|
|
145
115
|
publishToGit(options: GitPublishOptions): import("..").Task;
|
|
146
116
|
/**
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* @param options Options.
|
|
150
|
-
* @experimental
|
|
117
|
+
* Creates a GitHub Release.
|
|
118
|
+
* @param options Options
|
|
151
119
|
*/
|
|
152
120
|
publishToGitHubReleases(options: GitHubReleasesPublishOptions): void;
|
|
153
121
|
/**
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
* @param options Options.
|
|
157
|
-
* @experimental
|
|
122
|
+
* Publishes artifacts from `js/**` to npm.
|
|
123
|
+
* @param options Options
|
|
158
124
|
*/
|
|
159
125
|
publishToNpm(options?: NpmPublishOptions): void;
|
|
160
126
|
/**
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* @param options Options.
|
|
164
|
-
* @experimental
|
|
127
|
+
* Publishes artifacts from `dotnet/**` to NuGet Gallery.
|
|
128
|
+
* @param options Options
|
|
165
129
|
*/
|
|
166
130
|
publishToNuget(options?: NugetPublishOptions): void;
|
|
167
131
|
/**
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
* @param options Options.
|
|
171
|
-
* @experimental
|
|
132
|
+
* Publishes artifacts from `java/**` to Maven.
|
|
133
|
+
* @param options Options
|
|
172
134
|
*/
|
|
173
135
|
publishToMaven(options?: MavenPublishOptions): void;
|
|
174
136
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* @param options Options.
|
|
178
|
-
* @experimental
|
|
137
|
+
* Publishes wheel artifacts from `python` to PyPI.
|
|
138
|
+
* @param options Options
|
|
179
139
|
*/
|
|
180
140
|
publishToPyPi(options?: PyPiPublishOptions): void;
|
|
181
141
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
* @param options Options.
|
|
185
|
-
* @experimental
|
|
142
|
+
* Adds a go publishing job.
|
|
143
|
+
* @param options Options
|
|
186
144
|
*/
|
|
187
145
|
publishToGo(options?: GoPublishOptions): void;
|
|
188
146
|
private addPublishJob;
|
|
189
|
-
private
|
|
147
|
+
private publibCommand;
|
|
190
148
|
}
|
|
191
149
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* @experimental
|
|
150
|
+
* Common publishing options
|
|
195
151
|
*/
|
|
196
152
|
export interface CommonPublishOptions {
|
|
197
153
|
/**
|
|
198
|
-
*
|
|
154
|
+
* Steps to execute before executing the publishing command. These can be used
|
|
155
|
+
* to prepare the artifact for publishing if neede.
|
|
199
156
|
*
|
|
200
157
|
* These steps are executed after `dist/` has been populated with the build
|
|
201
158
|
* output.
|
|
202
159
|
*
|
|
203
160
|
* Note that when using this in `publishToGitHubReleases` this will override steps added via `addGitHubPrePublishingSteps`.
|
|
204
|
-
*
|
|
205
|
-
* @experimental
|
|
206
161
|
*/
|
|
207
162
|
readonly prePublishSteps?: JobStep[];
|
|
208
163
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
164
|
+
* Additional tools to install in the publishing job.
|
|
211
165
|
* @default - no additional tools are installed
|
|
212
|
-
* @experimental
|
|
213
166
|
*/
|
|
214
167
|
readonly publishTools?: Tools;
|
|
215
168
|
}
|
|
@@ -219,13 +172,11 @@ export interface CommonPublishOptions {
|
|
|
219
172
|
export interface JsiiReleaseNpm extends NpmPublishOptions {
|
|
220
173
|
}
|
|
221
174
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* @experimental
|
|
175
|
+
* Options for npm release
|
|
225
176
|
*/
|
|
226
177
|
export interface NpmPublishOptions extends CommonPublishOptions {
|
|
227
178
|
/**
|
|
228
|
-
*
|
|
179
|
+
* Tags can be used to provide an alias instead of version numbers.
|
|
229
180
|
*
|
|
230
181
|
* For example, a project might choose to have multiple streams of development
|
|
231
182
|
* and use a different tag for each stream, e.g., stable, beta, dev, canary.
|
|
@@ -243,7 +194,7 @@ export interface NpmPublishOptions extends CommonPublishOptions {
|
|
|
243
194
|
*/
|
|
244
195
|
readonly distTag?: string;
|
|
245
196
|
/**
|
|
246
|
-
*
|
|
197
|
+
* The domain name of the npm package registry.
|
|
247
198
|
*
|
|
248
199
|
* To publish to GitHub Packages, set this value to `"npm.pkg.github.com"`. In
|
|
249
200
|
* this if `npmTokenSecret` is not specified, it will default to
|
|
@@ -252,54 +203,41 @@ export interface NpmPublishOptions extends CommonPublishOptions {
|
|
|
252
203
|
* correctly defined.
|
|
253
204
|
*
|
|
254
205
|
* @default "registry.npmjs.org"
|
|
255
|
-
* @
|
|
256
|
-
* @example
|
|
257
|
-
*
|
|
258
|
-
* "npm.pkg.github.com"
|
|
206
|
+
* @example "npm.pkg.github.com"
|
|
259
207
|
*/
|
|
260
208
|
readonly registry?: string;
|
|
261
209
|
/**
|
|
262
|
-
*
|
|
263
|
-
*
|
|
210
|
+
* GitHub secret which contains the NPM token to use when publishing packages.
|
|
264
211
|
* @default - "NPM_TOKEN" or "GITHUB_TOKEN" if `registry` is set to `npm.pkg.github.com`.
|
|
265
|
-
* @experimental
|
|
266
212
|
*/
|
|
267
213
|
readonly npmTokenSecret?: string;
|
|
268
214
|
/**
|
|
269
|
-
*
|
|
215
|
+
* Options for publishing npm package to AWS CodeArtifact.
|
|
270
216
|
*
|
|
271
217
|
* @default - undefined
|
|
272
|
-
* @experimental
|
|
273
218
|
*/
|
|
274
219
|
readonly codeArtifactOptions?: CodeArtifactOptions;
|
|
275
220
|
}
|
|
276
|
-
/**
|
|
277
|
-
* @experimental
|
|
278
|
-
*/
|
|
279
221
|
export interface CodeArtifactOptions {
|
|
280
222
|
/**
|
|
281
|
-
*
|
|
282
|
-
*
|
|
223
|
+
* GitHub secret which contains the AWS access key ID to use when publishing packages to AWS CodeArtifact.
|
|
283
224
|
* This property must be specified only when publishing to AWS CodeArtifact (`registry` contains AWS CodeArtifact URL).
|
|
284
225
|
*
|
|
285
226
|
* @default "AWS_ACCESS_KEY_ID"
|
|
286
|
-
* @experimental
|
|
287
227
|
*/
|
|
288
228
|
readonly accessKeyIdSecret?: string;
|
|
289
229
|
/**
|
|
290
|
-
*
|
|
291
|
-
*
|
|
230
|
+
* GitHub secret which contains the AWS secret access key to use when publishing packages to AWS CodeArtifact.
|
|
292
231
|
* This property must be specified only when publishing to AWS CodeArtifact (`registry` contains AWS CodeArtifact URL).
|
|
293
232
|
*
|
|
294
233
|
* @default "AWS_SECRET_ACCESS_KEY"
|
|
295
|
-
* @experimental
|
|
296
234
|
*/
|
|
297
235
|
readonly secretAccessKeySecret?: string;
|
|
298
236
|
/**
|
|
299
|
-
*
|
|
237
|
+
* ARN of AWS role to be assumed prior to get authorization token from AWS CodeArtifact
|
|
238
|
+
* This property must be specified only when publishing to AWS CodeArtifact (`registry` contains AWS CodeArtifact URL).
|
|
300
239
|
*
|
|
301
240
|
* @default undefined
|
|
302
|
-
* @experimental
|
|
303
241
|
*/
|
|
304
242
|
readonly roleToAssume?: string;
|
|
305
243
|
}
|
|
@@ -309,30 +247,23 @@ export interface CodeArtifactOptions {
|
|
|
309
247
|
export interface JsiiReleasePyPi extends PyPiPublishOptions {
|
|
310
248
|
}
|
|
311
249
|
/**
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
* @experimental
|
|
250
|
+
* Options for PyPI release
|
|
315
251
|
*/
|
|
316
252
|
export interface PyPiPublishOptions extends CommonPublishOptions {
|
|
317
253
|
/**
|
|
318
|
-
*
|
|
254
|
+
* The registry url to use when releasing packages.
|
|
319
255
|
*
|
|
320
256
|
* @default - twine default
|
|
321
|
-
* @experimental
|
|
322
257
|
*/
|
|
323
258
|
readonly twineRegistryUrl?: string;
|
|
324
259
|
/**
|
|
325
|
-
*
|
|
326
|
-
*
|
|
260
|
+
* The GitHub secret which contains PyPI user name.
|
|
327
261
|
* @default "TWINE_USERNAME"
|
|
328
|
-
* @experimental
|
|
329
262
|
*/
|
|
330
263
|
readonly twineUsernameSecret?: string;
|
|
331
264
|
/**
|
|
332
|
-
*
|
|
333
|
-
*
|
|
265
|
+
* The GitHub secret which contains PyPI password.
|
|
334
266
|
* @default "TWINE_PASSWORD"
|
|
335
|
-
* @experimental
|
|
336
267
|
*/
|
|
337
268
|
readonly twinePasswordSecret?: string;
|
|
338
269
|
}
|
|
@@ -342,16 +273,13 @@ export interface PyPiPublishOptions extends CommonPublishOptions {
|
|
|
342
273
|
export interface JsiiReleaseNuget extends NugetPublishOptions {
|
|
343
274
|
}
|
|
344
275
|
/**
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
* @experimental
|
|
276
|
+
* Options for NuGet releases
|
|
348
277
|
*/
|
|
349
278
|
export interface NugetPublishOptions extends CommonPublishOptions {
|
|
350
279
|
/**
|
|
351
|
-
*
|
|
280
|
+
* GitHub secret which contains the API key for NuGet.
|
|
352
281
|
*
|
|
353
282
|
* @default "NUGET_API_KEY"
|
|
354
|
-
* @experimental
|
|
355
283
|
*/
|
|
356
284
|
readonly nugetApiKeySecret?: string;
|
|
357
285
|
}
|
|
@@ -361,162 +289,140 @@ export interface NugetPublishOptions extends CommonPublishOptions {
|
|
|
361
289
|
export interface JsiiReleaseMaven extends MavenPublishOptions {
|
|
362
290
|
}
|
|
363
291
|
/**
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
* @experimental
|
|
292
|
+
* Options for Maven releases
|
|
367
293
|
*/
|
|
368
294
|
export interface MavenPublishOptions extends CommonPublishOptions {
|
|
369
295
|
/**
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
* if not set, defaults to https://oss.sonatype.org
|
|
296
|
+
* URL of Nexus repository. if not set, defaults to https://oss.sonatype.org
|
|
373
297
|
*
|
|
374
298
|
* @default "https://oss.sonatype.org"
|
|
375
|
-
* @experimental
|
|
376
299
|
*/
|
|
377
300
|
readonly mavenEndpoint?: string;
|
|
378
301
|
/**
|
|
379
|
-
*
|
|
302
|
+
* Used in maven settings for credential lookup (e.g. use github when publishing to GitHub).
|
|
380
303
|
*
|
|
381
304
|
* @default "ossrh" (Maven Central) or "github" when using GitHub Packages
|
|
382
|
-
* @experimental
|
|
383
305
|
*/
|
|
384
306
|
readonly mavenServerId?: string;
|
|
385
307
|
/**
|
|
386
|
-
*
|
|
308
|
+
* Deployment repository when not deploying to Maven Central
|
|
387
309
|
*
|
|
388
310
|
* @default - not set
|
|
389
|
-
* @experimental
|
|
390
311
|
*/
|
|
391
312
|
readonly mavenRepositoryUrl?: string;
|
|
392
313
|
/**
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
* This is used to sign your Maven
|
|
314
|
+
* GitHub secret name which contains the GPG private key or file that includes
|
|
315
|
+
* it. This is used to sign your Maven
|
|
396
316
|
* packages. See instructions.
|
|
397
317
|
*
|
|
318
|
+
* @see https://github.com/aws/publib#maven
|
|
398
319
|
* @default "MAVEN_GPG_PRIVATE_KEY" or not set when using GitHub Packages
|
|
399
|
-
* @see https://github.com/aws/jsii-release#maven
|
|
400
|
-
* @experimental
|
|
401
320
|
*/
|
|
402
321
|
readonly mavenGpgPrivateKeySecret?: string;
|
|
403
322
|
/**
|
|
404
|
-
*
|
|
405
|
-
*
|
|
406
|
-
* This is used to sign your Maven packages. See instructions.
|
|
323
|
+
* GitHub secret name which contains the GPG private key or file that includes
|
|
324
|
+
* it. This is used to sign your Maven packages. See instructions.
|
|
407
325
|
*
|
|
326
|
+
* @see https://github.com/aws/publib#maven
|
|
408
327
|
* @default "MAVEN_GPG_PRIVATE_KEY_PASSPHRASE" or not set when using GitHub Packages
|
|
409
|
-
* @see https://github.com/aws/jsii-release#maven
|
|
410
|
-
* @experimental
|
|
411
328
|
*/
|
|
412
329
|
readonly mavenGpgPrivateKeyPassphrase?: string;
|
|
413
330
|
/**
|
|
414
|
-
*
|
|
331
|
+
* GitHub secret name which contains the Username for maven repository.
|
|
415
332
|
*
|
|
416
333
|
* For Maven Central, you will need to Create JIRA account and then request a
|
|
417
334
|
* new project (see links).
|
|
418
335
|
*
|
|
419
|
-
* @
|
|
336
|
+
* @see https://issues.sonatype.org/secure/Signup
|
|
420
337
|
* @see https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21&pid=10134
|
|
421
|
-
*
|
|
338
|
+
*
|
|
339
|
+
* @default "MAVEN_USERNAME" or the GitHub Actor when using GitHub Packages
|
|
422
340
|
*/
|
|
423
341
|
readonly mavenUsername?: string;
|
|
424
342
|
/**
|
|
425
|
-
*
|
|
343
|
+
* GitHub secret name which contains the Password for maven repository.
|
|
426
344
|
*
|
|
427
345
|
* For Maven Central, you will need to Create JIRA account and then request a
|
|
428
346
|
* new project (see links).
|
|
429
347
|
*
|
|
430
|
-
* @
|
|
348
|
+
* @see https://issues.sonatype.org/secure/Signup
|
|
431
349
|
* @see https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21&pid=10134
|
|
432
|
-
*
|
|
350
|
+
*
|
|
351
|
+
* @default "MAVEN_PASSWORD" or "GITHUB_TOKEN" when using GitHub Packages
|
|
433
352
|
*/
|
|
434
353
|
readonly mavenPassword?: string;
|
|
435
354
|
/**
|
|
436
|
-
*
|
|
437
|
-
*
|
|
355
|
+
* GitHub secret name which contains the Maven Central (sonatype) staging
|
|
356
|
+
* profile ID (e.g. 68a05363083174). Staging profile ID can be found in the
|
|
357
|
+
* URL of the "Releases" staging profile under "Staging Profiles" in
|
|
358
|
+
* https://oss.sonatype.org (e.g.
|
|
359
|
+
* https://oss.sonatype.org/#stagingProfiles;11a33451234521)
|
|
360
|
+
|
|
438
361
|
* @default "MAVEN_STAGING_PROFILE_ID" or not set when using GitHub Packages
|
|
439
|
-
* @experimental
|
|
440
362
|
*/
|
|
441
363
|
readonly mavenStagingProfileId?: string;
|
|
442
364
|
}
|
|
443
365
|
/**
|
|
444
366
|
* @deprecated Use `GoPublishOptions` instead.
|
|
445
|
-
|
|
446
|
-
|
|
367
|
+
export interface JsiiReleaseGo extends GoPublishOptions { }
|
|
368
|
+
|
|
369
|
+
/**
|
|
447
370
|
* Options for Go releases.
|
|
448
371
|
*/
|
|
449
372
|
export interface GoPublishOptions extends CommonPublishOptions {
|
|
450
373
|
/**
|
|
451
|
-
*
|
|
374
|
+
* The name of the secret that includes a personal GitHub access token used to
|
|
375
|
+
* push to the GitHub repository.
|
|
452
376
|
*
|
|
453
377
|
* @default "GO_GITHUB_TOKEN"
|
|
454
|
-
* @deprecated
|
|
455
378
|
*/
|
|
456
379
|
readonly githubTokenSecret?: string;
|
|
457
380
|
/**
|
|
458
|
-
*
|
|
381
|
+
* GitHub repository to push to.
|
|
459
382
|
*
|
|
460
383
|
* @default - derived from `moduleName`
|
|
461
|
-
* @deprecated
|
|
462
384
|
*/
|
|
463
385
|
readonly githubRepo?: string;
|
|
464
386
|
/**
|
|
465
|
-
*
|
|
387
|
+
* Branch to push to.
|
|
466
388
|
*
|
|
467
389
|
* @default "main"
|
|
468
|
-
* @deprecated
|
|
469
390
|
*/
|
|
470
391
|
readonly gitBranch?: string;
|
|
471
392
|
/**
|
|
472
|
-
*
|
|
473
|
-
*
|
|
393
|
+
* The user name to use for the release git commit.
|
|
474
394
|
* @default "github-actions"
|
|
475
|
-
* @deprecated
|
|
476
395
|
*/
|
|
477
396
|
readonly gitUserName?: string;
|
|
478
397
|
/**
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
* @default "github-actions
|
|
482
|
-
* @deprecated
|
|
483
|
-
* @github .com"
|
|
398
|
+
* The email to use in the release git commit.
|
|
399
|
+
* @default "github-actions@github.com"
|
|
484
400
|
*/
|
|
485
401
|
readonly gitUserEmail?: string;
|
|
486
402
|
/**
|
|
487
|
-
*
|
|
403
|
+
* The commit message.
|
|
488
404
|
*
|
|
489
405
|
* @default "chore(release): $VERSION"
|
|
490
|
-
* @deprecated
|
|
491
406
|
*/
|
|
492
407
|
readonly gitCommitMessage?: string;
|
|
493
408
|
}
|
|
494
409
|
interface VersionArtifactOptions {
|
|
495
410
|
/**
|
|
496
|
-
*
|
|
497
|
-
*
|
|
498
|
-
* @experimental
|
|
499
|
-
* @example
|
|
411
|
+
* The location of a text file (relative to `dist/`) that contains the version number.
|
|
500
412
|
*
|
|
501
|
-
* version.txt
|
|
413
|
+
* @example version.txt
|
|
502
414
|
*/
|
|
503
415
|
readonly versionFile: string;
|
|
504
416
|
/**
|
|
505
|
-
*
|
|
417
|
+
* The location of a text file (relative to `dist/`) that contains the release tag.
|
|
506
418
|
*
|
|
507
|
-
* @
|
|
508
|
-
* @example
|
|
509
|
-
*
|
|
510
|
-
* releasetag.txt
|
|
419
|
+
* @example releasetag.txt
|
|
511
420
|
*/
|
|
512
421
|
readonly releaseTagFile: string;
|
|
513
422
|
/**
|
|
514
|
-
*
|
|
515
|
-
*
|
|
516
|
-
* @experimental
|
|
517
|
-
* @example
|
|
423
|
+
* The location of an .md file (relative to `dist/`) that includes the changelog for the release.
|
|
518
424
|
*
|
|
519
|
-
* changelog.md
|
|
425
|
+
* @example changelog.md
|
|
520
426
|
*/
|
|
521
427
|
readonly changelogFile: string;
|
|
522
428
|
}
|
|
@@ -527,37 +433,28 @@ interface VersionArtifactOptions {
|
|
|
527
433
|
*/
|
|
528
434
|
export declare function isAwsCodeArtifactRegistry(registryUrl: string | undefined): boolean | "" | undefined;
|
|
529
435
|
/**
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
* @experimental
|
|
436
|
+
* Publishing options for GitHub releases.
|
|
533
437
|
*/
|
|
534
438
|
export interface GitHubReleasesPublishOptions extends VersionArtifactOptions, CommonPublishOptions {
|
|
535
439
|
}
|
|
536
440
|
/**
|
|
537
|
-
*
|
|
538
|
-
*
|
|
539
|
-
* @experimental
|
|
441
|
+
* Publishing options for Git releases
|
|
540
442
|
*/
|
|
541
443
|
export interface GitPublishOptions extends VersionArtifactOptions {
|
|
542
444
|
/**
|
|
543
|
-
*
|
|
544
|
-
*
|
|
545
|
-
* @experimental
|
|
445
|
+
* The location of an .md file that includes the project-level changelog.
|
|
546
446
|
*/
|
|
547
447
|
readonly projectChangelogFile?: string;
|
|
548
448
|
/**
|
|
549
|
-
*
|
|
449
|
+
* Branch to push to.
|
|
550
450
|
*
|
|
551
451
|
* @default "main"
|
|
552
|
-
* @experimental
|
|
553
452
|
*/
|
|
554
453
|
readonly gitBranch?: string;
|
|
555
454
|
/**
|
|
556
|
-
*
|
|
455
|
+
* Override git-push command.
|
|
557
456
|
*
|
|
558
457
|
* Set to an empty string to disable pushing.
|
|
559
|
-
*
|
|
560
|
-
* @experimental
|
|
561
458
|
*/
|
|
562
459
|
readonly gitPushCommand?: string;
|
|
563
460
|
}
|