File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import {getChangelogsUncached} from './src/server/utils';
33try {
44 checkChanges ( ) ;
55} catch ( e ) {
6+ // eslint-disable-next-line no-console
67 console . error ( e ) ;
78 // build in case of errors
89 process . exit ( 1 ) ;
@@ -20,16 +21,19 @@ async function checkChanges() {
2021 } ) ;
2122
2223 if ( prodHash === null ) {
24+ // eslint-disable-next-line no-console
2325 console . error ( 'could not find changelogs hash on on live changelog page' ) ;
2426 // build anyway since we are not sure
2527 process . exit ( 1 ) ;
2628 }
2729
2830 if ( prodHash !== hash ) {
31+ // eslint-disable-next-line no-console
2932 console . info ( '⚠️ changelogs have changed since last deployment' ) ;
3033 // should build
3134 process . exit ( 1 ) ;
3235 }
36+ // eslint-disable-next-line no-console
3337 console . info ( 'changelogs are up to date' ) ;
3438 // skip build
3539 process . exit ( 0 ) ;
You can’t perform that action at this time.
0 commit comments