Skip to content

Commit 1b788b1

Browse files
authored
fix(ci): restore CONFIG_ENV variable (#45589)
1 parent a1d4175 commit 1b788b1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ jobs:
646646
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
647647
NODE_OPTIONS: --max-old-space-size=6144
648648
YARN_CACHE_FOLDER: ~/.cache/yarn
649+
CONFIG_ENV: release
649650
steps:
650651
- checkout
651652
- when:

desktop/bin/build-desktop-config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ const base = JSON.parse( fs.readFileSync( BASE_CONFIG, 'utf-8' ) );
1212
let env;
1313
try {
1414
env = JSON.parse( fs.readFileSync( TARGET_CONFIG, 'utf-8' ) );
15-
} catch {}
15+
} catch ( e ) {
16+
if ( process.env.CI ) {
17+
console.error( 'Error reading target config: ', e.message );
18+
}
19+
}
1620

1721
const config = JSON.stringify( Object.assign( base, env ), null, 2 );
1822

0 commit comments

Comments
 (0)