From 230df78ac3e9c89df9093c9339dc07a5271c26f8 Mon Sep 17 00:00:00 2001 From: darangi Date: Wed, 24 Jun 2020 01:00:52 +0100 Subject: [PATCH] added git config --- script/lib/update-dependency/git.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/lib/update-dependency/git.js b/script/lib/update-dependency/git.js index f9c4dfcc1..6cf9fd6b9 100644 --- a/script/lib/update-dependency/git.js +++ b/script/lib/update-dependency/git.js @@ -5,7 +5,10 @@ const git = simpleGit(repositoryRootPath); const packageJsonFilePath = path.join(repositoryRootPath, 'package.json'); const packageLockFilePath = path.join(repositoryRootPath, 'package-lock.json'); -// TODO config git.credentials() +git.addRemote( + 'origin', + `https://atom:${process.env.AUTH_TOKEN}@github.com/atom/atom.git/` +); module.exports = { switchToMaster: async function() { const { current } = await git.branch();