File tree Expand file tree Collapse file tree 4 files changed +2432
-1968
lines changed
Expand file tree Collapse file tree 4 files changed +2432
-1968
lines changed Original file line number Diff line number Diff line change 1- const cp = require ( ' child_process' ) ;
2- cp . execSync ( `cd ${ __dirname } ; yarn install --frozen-lockfile ` ) ;
1+ const cp = require ( " child_process" ) ;
2+ cp . execSync ( `cd ${ __dirname } ; npm ci ` ) ;
33
4- const path = require ( ' path' ) ;
5- const core = require ( ' @actions/core' ) ;
6- const lernaChangelog = path . resolve ( __dirname , ' node_modules/.bin/lerna-changelog' ) ;
4+ const path = require ( " path" ) ;
5+ const core = require ( " @actions/core" ) ;
6+ const lernaChangelog = path . resolve ( __dirname , " node_modules/.bin/lerna-changelog" ) ;
77
8- const exec = ( cmd ) => cp . execSync ( cmd ) . toString ( ) . trim ( ) ;
8+ const exec = cmd => cp . execSync ( cmd ) . toString ( ) . trim ( ) ;
99
10- const tagFrom = core . getInput ( 'from' , {
11- required : true ,
12- } ) ;
13- const tagTo = core . getInput ( 'to' , {
14- required : true ,
15- } ) ;
10+ const tagFrom = core . getInput ( "from" , { required : true } ) ;
11+ const tagTo = core . getInput ( "to" , { required : true } ) ;
1612
17- const changelog = exec ( `node ${ lernaChangelog } --tag-from ${ tagFrom } --tag-to ${ tagTo } ` ) ;
18- core . setOutput ( 'changelog' , JSON . stringify ( changelog ) ) ;
13+ const changelog = exec ( `node ${ lernaChangelog } --from ${ tagFrom } --to ${ tagTo } ` ) ;
14+
15+ core . setOutput ( "changelog" , JSON . stringify ( changelog ) ) ;
You can’t perform that action at this time.
0 commit comments