Skip to content

Commit 339abea

Browse files
committed
build in case of errors
1 parent 80d903a commit 339abea

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

apps/changelog/has-content-changes.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
import {getChangelogsUncached} from './src/server/utils';
22

3+
try {
4+
checkChanges();
5+
} catch (e) {
6+
console.error(e);
7+
// build in case of errors
8+
process.exit(1);
9+
}
10+
311
async function checkChanges() {
412
const {hash, changelogs} = await getChangelogsUncached();
513
console.log({changelogs});
@@ -27,4 +35,3 @@ async function checkChanges() {
2735
// skip build
2836
process.exit(0);
2937
}
30-
checkChanges();

0 commit comments

Comments
 (0)