Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inputs:
required: false
default: "false"
node-version:
description: "Node.js version to install via `vp env use`. Defaults to Node.js latest LTS version."
description: "Node.js version to install via `vp env use`. Defaults to Node.js latest LTS version. Pass `off` to disable."
Comment thread
fengmk2 marked this conversation as resolved.
required: false
Comment thread
fengmk2 marked this conversation as resolved.
node-version-file:
description: "Path to file containing the Node.js version spec (.nvmrc, .node-version, .tool-versions, package.json). Ignored when node-version is specified."
Expand Down
136 changes: 68 additions & 68 deletions dist/index.mjs

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ async function runMain(inputs: Inputs): Promise<void> {
await installVitePlus({ ...inputs, version });

// Step 3: Set up Node.js version if specified
if (nodeVersion) {
if (nodeVersion && nodeVersion !== "off") {
info(`Setting up Node.js ${nodeVersion} via vp env use...`);
await exec("vp", ["env", "use", nodeVersion]);
} else if (nodeVersion === "off") {
info("Disabling Node.js version management with vp env off...");
await exec("vp", ["env", "off"]);
Comment thread
fengmk2 marked this conversation as resolved.
}

// Step 4: Configure registry authentication
Expand Down
Loading