File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 4545 run : yarn ts-node scripts/ci-test/deploy-if-needed.ts
4646 env :
4747 FIREBASE_CLI_TOKEN : ${{secrets.FIREBASE_CLI_TOKEN}}
48+ PROJECT_CONFIG : ${{ secrets.TEST_PROJECT_CONFIG }}
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import { exec } from 'child-process-promise';
2222const firebaseTools = require ( 'firebase-tools' ) ;
2323
2424const root = resolve ( __dirname , '../..' ) ;
25- const config = require ( resolve ( root , 'config/ci.config.json' ) ) ;
2625const git = simpleGit ( root ) ;
2726
2827interface DeployOptions {
@@ -32,6 +31,11 @@ interface DeployOptions {
3231 only ?: string ;
3332}
3433
34+ let config : { projectId : string } ;
35+ if ( process . env . PROJECT_CONFIG ) {
36+ config = JSON . parse ( process . env . PROJECT_CONFIG ) ;
37+ }
38+
3539/**
3640 * Changes to these files require redeployment to the project backend.
3741 */
You can’t perform that action at this time.
0 commit comments