Skip to content

Commit 5010c5a

Browse files
committed
Build
1 parent ba874a0 commit 5010c5a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

dist/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const core = __nccwpck_require__(5316)
99

1010
const setupNodenv = __nccwpck_require__(2558)
1111

12-
function run () {
12+
function run() {
1313
return setupNodenv
14-
.then(() => exec('nodenv local'))
15-
.then(cmd => core.setOutput('node-version', cmd.stdout.trim()))
14+
.then(() => exec("nodenv local"))
15+
.then((cmd) => core.setOutput("node-version", cmd.stdout.trim()))
1616
}
1717

1818
module.exports = run()
@@ -6576,9 +6576,9 @@ exports["default"] = _default;
65766576
const core = __nccwpck_require__(5316)
65776577
const { installNodenv } = __nccwpck_require__(69)
65786578

6579-
function run () {
6579+
function run() {
65806580
return Promise.resolve().then(() =>
6581-
installNodenv(core.getInput('nodenv-version'))
6581+
installNodenv(core.getInput("nodenv-version"))
65826582
)
65836583
}
65846584

@@ -6595,27 +6595,27 @@ const path = __nccwpck_require__(1017)
65956595
const core = __nccwpck_require__(5316)
65966596
const tools = __nccwpck_require__(9303)
65976597

6598-
const TOOL_NAME = 'nodenv'
6598+
const TOOL_NAME = "nodenv"
65996599

66006600
module.exports = {
66016601
installNodenv: async function (version) {
66026602
const toolPath = tools.find(TOOL_NAME, version) || downloadNodenv(version)
66036603

66046604
// prepend bin directory to PATH for future tasks
6605-
core.addPath(path.join(await toolPath, 'bin'))
6605+
core.addPath(path.join(await toolPath, "bin"))
66066606

66076607
return toolPath
66086608
}
66096609
}
66106610

6611-
async function downloadNodenv (version) {
6611+
async function downloadNodenv(version) {
66126612
return Promise.resolve(
66136613
`https://github.com/nodenv/nodenv/archive/v${version}.tar.gz`
66146614
)
6615-
.then(url => tools.downloadTool(url))
6616-
.then(tarballPath => tools.extractTar(tarballPath))
6617-
.then(extractedPath => `${extractedPath}/nodenv-${version}`)
6618-
.then(nodenvPath => tools.cacheDir(nodenvPath, TOOL_NAME, version))
6615+
.then((url) => tools.downloadTool(url))
6616+
.then((tarballPath) => tools.extractTar(tarballPath))
6617+
.then((extractedPath) => `${extractedPath}/nodenv-${version}`)
6618+
.then((nodenvPath) => tools.cacheDir(nodenvPath, TOOL_NAME, version))
66196619
}
66206620

66216621

0 commit comments

Comments
 (0)