File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ try {
16
16
module . exports = {
17
17
switchToMaster : async function ( ) {
18
18
const { current } = await git . branch ( ) ;
19
- if ( current !== 'master ' ) {
20
- await git . checkout ( 'master ' ) ;
19
+ if ( current !== 'dependency-automation ' ) {
20
+ await git . checkout ( 'dependency-automation ' ) ;
21
21
}
22
- await git . pull ( 'origin' , 'master ' ) ;
22
+ // await git.pull('origin', 'dependency-automation ');
23
23
} ,
24
24
makeBranch : async function ( dependency ) {
25
25
const newBranch = `${ dependency . moduleName } -${ dependency . latest } ` ;
Original file line number Diff line number Diff line change 1
1
const fs = require ( 'fs' ) ;
2
2
const path = require ( 'path' ) ;
3
+ const execa = require ( 'execa' ) ;
3
4
const { repositoryRootPath } = require ( '../../config' ) ;
4
5
const packageJsonFilePath = path . join ( repositoryRootPath , 'package.json' ) ;
5
6
const packageJSON = require ( packageJsonFilePath ) ;
@@ -63,5 +64,15 @@ module.exports = {
63
64
) ;
64
65
} ) ;
65
66
} ,
67
+ runApmInstall : async function ( ) {
68
+ console . log ( 'apm install' ) ;
69
+
70
+ return execa ( 'apm' , [ 'install' ] , { cwd : repositoryRootPath } )
71
+ . then ( result => result . failed )
72
+ . catch ( ex => {
73
+ console . log ( `failed to install module` ) ;
74
+ return false ;
75
+ } ) ;
76
+ } ,
66
77
sleep : ms => new Promise ( resolve => setTimeout ( resolve , ms ) )
67
78
} ;
Original file line number Diff line number Diff line change 24
24
"eslint-plugin-prettier" : " ^3.0.1" ,
25
25
"eslint-plugin-promise" : " ^4.1.1" ,
26
26
"eslint-plugin-standard" : " ^4.0.0" ,
27
+ "execa" : " ^4.0.2" ,
27
28
"fs-admin" : " ^0.12.0" ,
28
29
"fs-extra" : " 0.30.0" ,
29
30
"glob" : " 7.0.3" ,
You can’t perform that action at this time.
0 commit comments