File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ if ((await $`git status --porcelain`).stdout.toString().trim()) {
88
99const version = ( await $ `npm show cubing version` ) . stdout . toString ( ) . trim ( ) ;
1010
11+ const currentDependencyVersion : string = (
12+ await $ `cd app-template && npm ls cubing --json` . json ( )
13+ ) . dependencies . cubing . version ;
14+ if ( currentDependencyVersion === version ) {
15+ console . log ( `Current version matches lates from \`npm\`: ${ version } ` ) ;
16+ console . log ( "Exiting (without error)" ) ;
17+ exit ( 0 ) ;
18+ }
19+
1120await $ `npm install --prefix ${ fileURLToPath ( new URL ( import . meta. resolve ( "../app-template/" ) ) ) } "cubing@v${ version } "` ;
1221await $ `npm version --no-git-tag-version "v${ version } "` ;
1322await $ `git commit --all --message "v${ version } "` ;
You can’t perform that action at this time.
0 commit comments