@@ -7,9 +7,12 @@ module.exports = async ({ github, context, versionType }) => {
7
7
async function configureGit ( ) {
8
8
await execAsync ( 'git config user.name "github-actions"' ) ;
9
9
await execAsync ( 'git config user.email "github-actions@github.com"' ) ;
10
+
11
+ console . log ( "Configured git user" ) ;
10
12
}
11
13
12
14
async function incrementVersion ( ) {
15
+ console . log ( `Incrementing version with ${ versionType } ` ) ;
13
16
await execAsync ( `npm version ${ versionType } ` ) ;
14
17
const packageJson = require ( "../../package.json" ) ;
15
18
const version = packageJson . version ;
@@ -34,19 +37,14 @@ module.exports = async ({ github, context, versionType }) => {
34
37
}
35
38
36
39
async function createPull ( title , source , target ) {
37
- try {
38
- await github . pulls . create ( {
39
- title,
40
- body : `${ title } PR.` ,
41
- owner : context . repo . owner ,
42
- repo : context . repo . repo ,
43
- head : source ,
44
- base : target ,
45
- } ) ;
46
- } catch ( error ) {
47
- console . log ( "Error in creating PR" , error ) ;
48
- throw new Error ( "Error in creating PR" , error ) ;
49
- }
40
+ await github . pulls . create ( {
41
+ title,
42
+ body : `${ title } PR.` ,
43
+ owner : context . repo . owner ,
44
+ repo : context . repo . repo ,
45
+ head : source ,
46
+ base : target ,
47
+ } ) ;
50
48
}
51
49
52
50
try {
0 commit comments