release-it 17.0.5 → 17.1.0
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,7 +127,6 @@ class GitHub extends Release {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
async release() {
|
|
130
|
-
const { assets } = this.options;
|
|
131
130
|
const { isWeb, isUpdate } = this.getContext();
|
|
132
131
|
const { isCI } = this.config;
|
|
133
132
|
|
|
@@ -139,7 +138,11 @@ class GitHub extends Release {
|
|
|
139
138
|
return this.step({ task, label: 'Generating link to GitHub Release web interface', prompt: 'release' });
|
|
140
139
|
} else if (isCI) {
|
|
141
140
|
await this.step({ task: () => this[publishMethod](), label: `GitHub ${type} release` });
|
|
142
|
-
|
|
141
|
+
await this.step({ task: () => this.uploadAssets(), label: 'GitHub upload assets' });
|
|
142
|
+
return this.step({
|
|
143
|
+
task: () => (isUpdate ? Promise.resolve() : this.commentOnResolvedItems()),
|
|
144
|
+
label: 'GitHub comment on resolved items'
|
|
145
|
+
});
|
|
143
146
|
} else {
|
|
144
147
|
const release = async () => {
|
|
145
148
|
await this[publishMethod]();
|
|
@@ -373,7 +376,7 @@ class GitHub extends Release {
|
|
|
373
376
|
const { owner, project: repo } = this.getContext('repo');
|
|
374
377
|
const changelog = await this.getChangelog();
|
|
375
378
|
const { comments } = this.options;
|
|
376
|
-
const { submit, issue, pr } = comments;
|
|
379
|
+
const { submit, issue, pr } = comments ?? {};
|
|
377
380
|
const context = this.getContext();
|
|
378
381
|
|
|
379
382
|
if (!submit || !changelog) return;
|