Skip to content

Commit c3d16f0

Browse files
committed
changed remote
1 parent 230df78 commit c3d16f0

File tree

1 file changed

+9
-5
lines changed
  • script/lib/update-dependency

1 file changed

+9
-5
lines changed

script/lib/update-dependency/git.js

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

8-
git.addRemote(
9-
'origin',
10-
`https://atom:${process.env.AUTH_TOKEN}@github.com/atom/atom.git/`
11-
);
8+
try {
9+
git.addRemote(
10+
'ATOM',
11+
`https://atom:${process.env.AUTH_TOKEN}@github.com/atom/atom.git/`
12+
);
13+
} catch (ex) {
14+
console.log(ex.message);
15+
}
1216
module.exports = {
1317
switchToMaster: async function() {
1418
const { current } = await git.branch();
@@ -43,7 +47,7 @@ module.exports = {
4347
},
4448
publishBranch: async function(branch) {
4549
try {
46-
await git.push('origin', branch);
50+
await git.push('ATOM', branch);
4751
} catch (ex) {
4852
throw Error(ex.message);
4953
}

0 commit comments

Comments
 (0)