File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
script/lib/update-dependency Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,14 @@ const git = simpleGit(repositoryRootPath);
5
5
const packageJsonFilePath = path . join ( repositoryRootPath , 'package.json' ) ;
6
6
const packageLockFilePath = path . join ( repositoryRootPath , 'package-lock.json' ) ;
7
7
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
+ }
12
16
module . exports = {
13
17
switchToMaster : async function ( ) {
14
18
const { current } = await git . branch ( ) ;
@@ -43,7 +47,7 @@ module.exports = {
43
47
} ,
44
48
publishBranch : async function ( branch ) {
45
49
try {
46
- await git . push ( 'origin ' , branch ) ;
50
+ await git . push ( 'ATOM ' , branch ) ;
47
51
} catch ( ex ) {
48
52
throw Error ( ex . message ) ;
49
53
}
You can’t perform that action at this time.
0 commit comments