@@ -98,8 +98,8 @@ Promise.resolve()
98
98
// Update the credentials using the GITHUB TOKEN.
99
99
. then ( ( ) => execute ( 'git' , './ngtools-webpack-builds' , 'config' , 'credential.helper' ,
100
100
'store' , '--file=.git/credentials' ) )
101
- . then ( ( ) => fs . appendFileSync ( './ngtools-webpack-builds/.git/credentials' ,
102
- `https://${ process . env [ 'GITHUB_TOKEN_ANGULAR ' ] } @github.com` ) )
101
+ . then ( ( ) => fs . writeFileSync ( './ngtools-webpack-builds/.git/credentials' ,
102
+ `https://${ process . env [ 'GITHUB_ACCESS_TOKEN ' ] } @github.com` ) )
103
103
. then ( ( ) => execute ( 'git' , './ngtools-webpack-builds' , 'push' ) )
104
104
//---------------------------- cli-builds ----------------------------------//
105
105
. then ( ( ) => printMessage ( 'Copying cli-builds dist....' ) )
@@ -115,8 +115,8 @@ Promise.resolve()
115
115
// Update the credentials using the GITHUB TOKEN.
116
116
. then ( ( ) => execute ( 'git' , './cli-builds' , 'config' , 'credential.helper' ,
117
117
'store' , '--file=.git/credentials' ) )
118
- . then ( ( ) => fs . appendFileSync ( './cli-builds/.git/credentials' ,
119
- `https://${ process . env [ 'GITHUB_TOKEN_ANGULAR ' ] } @github.com` ) )
118
+ . then ( ( ) => fs . writeFileSync ( './cli-builds/.git/credentials' ,
119
+ `https://${ process . env [ 'GITHUB_ACCESS_TOKEN ' ] } @github.com` ) )
120
120
. then ( ( ) => execute ( 'git' , './cli-builds' , 'push' ) )
121
121
//---------------------------- done ----------------------------------------//
122
122
. then ( ( ) => console . log ( 'Done...' ) )
0 commit comments