@@ -8,7 +8,6 @@ import { SuperThis } from "@fireproof/core-types-base";
88import { SemVer } from "semver" ;
99
1010function getEnvVersion ( version = "refs/tags/v0.0.0-smoke" ) {
11- console . log ( `Using GITHUB_REF: ${ process . env . GITHUB_REF } ` ) ;
1211 if (
1312 process . env . GITHUB_REF &&
1413 ( process . env . GITHUB_REF . startsWith ( "refs/tags/v" ) || process . env . GITHUB_REF . startsWith ( "refs/tags/core@" ) )
@@ -27,15 +26,12 @@ async function getVersion(fpVersionFname: string) {
2726 if ( ! top ) {
2827 top = process . cwd ( ) ;
2928 }
30- console . log ( "-1" ) ;
3129 const fpVersionFile = path . join ( path . dirname ( top ) , fpVersionFname ) ;
3230 if ( fs . existsSync ( fpVersionFile ) ) {
33- console . log ( "-2" , process . env . GITHUB_REF , fpVersionFile ) ;
3431 return getEnvVersion ( ( await fs . readFile ( fpVersionFile , "utf-8" ) ) . trim ( ) ) ;
3532 }
3633 const gitHead = ( await $ `git rev-parse --short HEAD` ) . stdout . trim ( ) ;
3734 const dateTick = ( await $ `date +%s` ) . stdout . trim ( ) ;
38- console . log ( "-3" ) ;
3935 return getEnvVersion ( `refs/tags/v0.0.0-smoke-${ gitHead } -${ dateTick } ` ) ;
4036}
4137
@@ -191,7 +187,6 @@ export function buildCmd(sthis: SuperThis) {
191187 }
192188 if ( args . prepareVersion ) {
193189 await fs . mkdirp ( args . dstDir ) ;
194- console . log ( `Preparing version: ${ args . version } ` ) ;
195190 const fpVersionFile = path . join ( args . dstDir , "fp-version.txt" ) ;
196191 args . version = await getVersion ( args . fpVersion ) ;
197192 await fs . writeFile ( fpVersionFile , args . version ) ;
0 commit comments