File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const token = process.env.ELECTRON_API_DEMO_GITHUB_TOKEN
10
10
const version = require ( '../package' ) . version
11
11
12
12
checkToken ( )
13
+ . then ( checkHerokuLoginStatus )
13
14
. then ( zipAssets )
14
15
. then ( createRelease )
15
16
. then ( uploadAssets )
@@ -28,6 +29,20 @@ function checkToken () {
28
29
}
29
30
}
30
31
32
+ function checkHerokuLoginStatus ( ) {
33
+ return new Promise ( ( resolve , reject ) => {
34
+ console . log ( 'Checking Heroku login status' )
35
+
36
+ childProcess . exec ( 'heroku whoami' , ( error , stdout , stderr ) => {
37
+ if ( error ) {
38
+ reject ( 'You are not logged in to GitHub\'s Heroku Enterprise account. To log in, run this command:\n$ heroku login --sso' )
39
+ } else {
40
+ resolve ( )
41
+ }
42
+ } )
43
+ } )
44
+ }
45
+
31
46
function zipAsset ( asset ) {
32
47
return new Promise ( ( resolve , reject ) => {
33
48
const assetBase = path . basename ( asset . path )
You can’t perform that action at this time.
0 commit comments