release-it 17.1.0 → 17.1.1
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.
|
@@ -127,6 +127,7 @@ class GitHub extends Release {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
async release() {
|
|
130
|
+
const { assets } = this.options;
|
|
130
131
|
const { isWeb, isUpdate } = this.getContext();
|
|
131
132
|
const { isCI } = this.config;
|
|
132
133
|
|
|
@@ -138,7 +139,7 @@ class GitHub extends Release {
|
|
|
138
139
|
return this.step({ task, label: 'Generating link to GitHub Release web interface', prompt: 'release' });
|
|
139
140
|
} else if (isCI) {
|
|
140
141
|
await this.step({ task: () => this[publishMethod](), label: `GitHub ${type} release` });
|
|
141
|
-
await this.step({ task: () => this.uploadAssets(), label: 'GitHub upload assets' });
|
|
142
|
+
await this.step({ enabled: assets, task: () => this.uploadAssets(), label: 'GitHub upload assets' });
|
|
142
143
|
return this.step({
|
|
143
144
|
task: () => (isUpdate ? Promise.resolve() : this.commentOnResolvedItems()),
|
|
144
145
|
label: 'GitHub comment on resolved items'
|
|
@@ -147,7 +148,7 @@ class GitHub extends Release {
|
|
|
147
148
|
const release = async () => {
|
|
148
149
|
await this[publishMethod]();
|
|
149
150
|
await this.uploadAssets();
|
|
150
|
-
return isUpdate ? Promise.resolve() : this.commentOnResolvedItems();
|
|
151
|
+
return isUpdate ? Promise.resolve(true) : this.commentOnResolvedItems();
|
|
151
152
|
};
|
|
152
153
|
return this.step({ task: release, label: `GitHub ${type} release`, prompt: 'release' });
|
|
153
154
|
}
|
|
@@ -379,7 +380,7 @@ class GitHub extends Release {
|
|
|
379
380
|
const { submit, issue, pr } = comments ?? {};
|
|
380
381
|
const context = this.getContext();
|
|
381
382
|
|
|
382
|
-
if (!submit || !changelog) return;
|
|
383
|
+
if (!submit || !changelog) return true;
|
|
383
384
|
|
|
384
385
|
const shas = getCommitsFromChangelog(changelog);
|
|
385
386
|
const searchResults = await Promise.all(searchQueries(this.client, owner, repo, shas));
|
|
@@ -395,7 +396,7 @@ class GitHub extends Release {
|
|
|
395
396
|
|
|
396
397
|
if (isDryRun) {
|
|
397
398
|
this.log.exec(`octokit issues.createComment (${url})`, { isDryRun });
|
|
398
|
-
return;
|
|
399
|
+
return Promise.resolve();
|
|
399
400
|
}
|
|
400
401
|
|
|
401
402
|
try {
|