Skip to content

Commit 780918e

Browse files
hanslfilipesilva
authored andcommitted
build: fix deploy script condition (take 4)
1 parent 93aa9fe commit 780918e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/git-builds.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ Promise.resolve()
9797
.then((message) => execute('git', './ngtools-webpack-builds', 'commit', '-am', message.substr(1)))
9898
// Update the credentials using the GITHUB TOKEN.
9999
.then(() => execute('git', './ngtools-webpack-builds', 'config', 'credential.helper',
100-
'store --file=.git/credentials'))
100+
'store', '--file=.git/credentials'))
101101
.then(() => fs.appendFileSync('./ngtools-webpack-builds/.git/credentials',
102-
`https://${process.env['GITHUB_TOKEN_ANGULAR']}:@github.com`))
102+
`https://${process.env['GITHUB_TOKEN_ANGULAR']}@github.com`))
103103
.then(() => execute('git', './ngtools-webpack-builds', 'push'))
104104
//---------------------------- cli-builds ----------------------------------//
105105
.then(() => printMessage('Copying cli-builds dist....'))
@@ -114,9 +114,9 @@ Promise.resolve()
114114
.then((message) => execute('git', './cli-builds', 'commit', '-am', message.substr(1)))
115115
// Update the credentials using the GITHUB TOKEN.
116116
.then(() => execute('git', './cli-builds', 'config', 'credential.helper',
117-
'store --file=.git/credentials'))
117+
'store', '--file=.git/credentials'))
118118
.then(() => fs.appendFileSync('./cli-builds/.git/credentials',
119-
`https://${process.env['GITHUB_TOKEN_ANGULAR']}:@github.com`))
119+
`https://${process.env['GITHUB_TOKEN_ANGULAR']}@github.com`))
120120
.then(() => execute('git', './cli-builds', 'push'))
121121
//---------------------------- done ----------------------------------------//
122122
.then(() => console.log('Done...'))

0 commit comments

Comments
 (0)