File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 32
32
"use strict" ;
33
33
34
34
const ncp = require ( "ncp" ) ;
35
- const fs = require ( "fs" ) ;
36
- const path = require ( "path" ) ;
37
35
const runCommand = require ( "./run-command" ) ;
38
- const childProcess = require ( "child_process" ) ;
36
+ const packageInfo = require ( "../package.json" ) ;
37
+ const semver = require ( "semver" ) ;
39
38
40
39
/**
41
40
* The compiler version that will be built.
@@ -47,11 +46,7 @@ const childProcess = require("child_process");
47
46
*/
48
47
const compilerVersion = process . env . COMPILER_NIGHTLY == 'true'
49
48
? 'SNAPSHOT-1.0'
50
- : String (
51
- childProcess . execSync ( 'git tag --points-at HEAD' , {
52
- cwd : './compiler' ,
53
- } )
54
- ) . trim ( ) ;
49
+ : `v${ semver . major ( packageInfo . version ) } ` ;
55
50
56
51
const compilerTargetName = compilerVersion === 'SNAPSHOT-1.0' || parseInt ( compilerVersion . slice ( 1 ) , 10 ) > 20221004 ?
57
52
'compiler_uberjar_deploy.jar' : 'compiler_unshaded_deploy.jar' ;
You can’t perform that action at this time.
0 commit comments