Skip to content

Commit 230df78

Browse files
committed
added git config
1 parent 49145f1 commit 230df78

File tree

1 file changed

+4
-1
lines changed
  • script/lib/update-dependency

1 file changed

+4
-1
lines changed

script/lib/update-dependency/git.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ const git = simpleGit(repositoryRootPath);
55
const packageJsonFilePath = path.join(repositoryRootPath, 'package.json');
66
const packageLockFilePath = path.join(repositoryRootPath, 'package-lock.json');
77

8-
// TODO config git.credentials()
8+
git.addRemote(
9+
'origin',
10+
`https://atom:${process.env.AUTH_TOKEN}@github.com/atom/atom.git/`
11+
);
912
module.exports = {
1013
switchToMaster: async function() {
1114
const { current } = await git.branch();

0 commit comments

Comments
 (0)