@@ -40,10 +40,13 @@ function versionBundle (bundleFile, tagName) {
4040 . src ( bundleFile )
4141 . pipe ( zip . src ( ) . on ( 'error' , reject ) )
4242 . pipe (
43- map ( ( file , enc , next ) => next ( null , file ) , function ( done ) {
44- this . push ( new File ( { path : 'ui.yml' , contents : Buffer . from ( `version: ${ tagName } \n` ) } ) )
45- done ( )
46- } )
43+ map (
44+ ( file , enc , next ) => next ( null , file ) ,
45+ function ( done ) {
46+ this . push ( new File ( { path : 'ui.yml' , contents : Buffer . from ( `version: ${ tagName } \n` ) } ) )
47+ done ( )
48+ }
49+ )
4750 )
4851 . pipe ( zip . dest ( bundleFile ) )
4952 . on ( 'finish' , ( ) => resolve ( bundleFile ) )
@@ -67,9 +70,7 @@ module.exports = (dest, bundleName, owner, repo, token, updateBranch) => async (
6770 const readmeBlob = await octokit . git
6871 . createBlob ( { owner, repo, content : readmeContent , encoding : 'utf-8' } )
6972 . then ( ( result ) => result . data . sha )
70- let tree = await octokit . git
71- . getCommit ( { owner, repo, commit_sha : commit } )
72- . then ( ( result ) => result . data . tree . sha )
73+ let tree = await octokit . git . getCommit ( { owner, repo, commit_sha : commit } ) . then ( ( result ) => result . data . tree . sha )
7374 tree = await octokit . git
7475 . createTree ( {
7576 owner,
0 commit comments