File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
.github/actions/get-node-version/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1- import { setOutput , setFailed , getInput } from "@actions/core" ;
1+ import { info , setOutput , setFailed , getInput } from "@actions/core" ;
22import semver from "semver" ;
33import { readFileSync } from "fs" ;
44
@@ -11,6 +11,7 @@ import { readFileSync } from "fs";
1111
1212 const rawContent = readFileSync ( inputPath ) ;
1313 const packageJson = JSON . parse ( rawContent . toString ( ) ) ;
14+ info ( `Validating Node version string "${ packageJson ?. engines ?. node } "` ) ;
1415
1516 // Check if both ranges are valid
1617 const engineVersionRangeString = semver . validRange ( packageJson . engines . node ) ;
@@ -48,5 +49,6 @@ import { readFileSync } from "fs";
4849 return ;
4950 }
5051
52+ info ( `Setting outputs.node-version to "${ engineVersionRangeMinimum . major } "` ) ;
5153 setOutput ( "node-version" , engineVersionRangeMinimum . major ) ;
5254} ) ( ) ;
You can’t perform that action at this time.
0 commit comments