Skip to content

Commit efb4022

Browse files
committed
chore(release): create gh release on publish
1 parent d8de923 commit efb4022

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

scripts/release-tasks.ts

+9-6
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,15 @@ export function runReleaseTasks(opts: BuildOptions, args: string[]) {
224224
}
225225
}
226226

227-
tasks.push({
228-
title: 'Create Github Release',
229-
task: () => {
230-
return postGithubRelease(opts);
231-
},
232-
});
227+
if (opts.isPublishRelease) {
228+
tasks.push({
229+
title: 'Create Github Release',
230+
task: () => {
231+
return postGithubRelease(opts);
232+
},
233+
});
234+
}
235+
233236
const listr = new Listr(tasks);
234237

235238
listr

0 commit comments

Comments
 (0)