Skip to content

Commit 4cdcbfa

Browse files
committed
throw
1 parent c56f717 commit 4cdcbfa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/release/process-release.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,9 @@ async function processRelease(): Promise<void> {
212212
}
213213

214214
if (!(await isAuthorizedRelease())) {
215-
console.log(
215+
throw new Error(
216216
'The issue was not approved.\nA team member must leave a comment "approved" in the release issue.'
217217
);
218-
return;
219218
}
220219

221220
const issueBody = await getIssueBody();

0 commit comments

Comments
 (0)