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