File tree Expand file tree Collapse file tree 3 files changed +22
-16
lines changed
Expand file tree Collapse file tree 3 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,7 @@ async function run() {
101101 }
102102
103103 case 'release' : {
104- checkRelease ( ) ;
105- executeCmd ( `git commit -am '${ pkg . version } '` ) ;
106- executeCmd ( `git tag -a ${ pkg . version } -m '${ pkg . version } '` ) ;
107- executeCmd ( `git push origin ${ RELEASE_BRANCH } ` ) ;
108- executeCmd ( `git push origin '${ pkg . version } '` ) ;
109- executeInteractiveCmd ( 'npm publish' ) ;
104+ release ( ) ;
110105
111106 break ;
112107 }
@@ -198,6 +193,17 @@ function checkRelease() {
198193 test ( ) ;
199194}
200195
196+ function release ( ) {
197+ logInfo ( 'release()' ) ;
198+
199+ checkRelease ( ) ;
200+ executeCmd ( `git commit -am '${ pkg . version } '` ) ;
201+ executeCmd ( `git tag -a ${ pkg . version } -m '${ pkg . version } '` ) ;
202+ executeCmd ( `git push origin ${ RELEASE_BRANCH } ` ) ;
203+ executeCmd ( `git push origin '${ pkg . version } '` ) ;
204+ executeInteractiveCmd ( 'npm publish' ) ;
205+ }
206+
201207function executeCmd ( command ) {
202208 logInfo ( `executeCmd(): ${ command } ` ) ;
203209
Original file line number Diff line number Diff line change 5151 "@eslint/js" : " ^9.33.0" ,
5252 "@types/debug" : " ^4.1.12" ,
5353 "@types/jest" : " ^30.0.0" ,
54- "@types/node" : " ^24.2.1 " ,
54+ "@types/node" : " ^24.3.0 " ,
5555 "eslint" : " ^9.33.0" ,
5656 "eslint-config-prettier" : " ^10.1.8" ,
5757 "eslint-plugin-jest" : " ^29.0.1" ,
6262 "open-cli" : " ^8.0.0" ,
6363 "prettier" : " ^3.6.2" ,
6464 "ts-jest" : " ^29.4.1" ,
65- "typescript" : " ^5.8.3 " ,
65+ "typescript" : " ^5.9.2 " ,
6666 "typescript-eslint" : " ^8.39.1"
6767 }
6868}
You can’t perform that action at this time.
0 commit comments