| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Adds support for explicitly disabling Vite+ Node.js version management via the action input node-version: off, aimed at users who manage Node.js through other tooling.
Changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/index.ts | Adds nodeVersion !== "off" guard and an else if branch to run vp env off. |
| action.yml | Updates node-version input description to mention off. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 3376754c01
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
|
turns out I forgot to push my packed dist/index.mjs |
Sorry, something went wrong.
There was a problem hiding this comment.
Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.
Suppressed comments (1)action.yml:25
description: "Node.js version to install via `vp env use`. Defaults to Node.js latest LTS version. Pass `off` to disable."
Sorry, something went wrong.
|
waiting for merge ig |
Sorry, something went wrong.
|
@KTrain5169 Could you try this environment variable? It should be able to disable the Node.js version manager. - uses: voidzero-dev/setup-vp@v1
env:
VP_NODE_MANAGER: "no" |
Sorry, something went wrong.
will check later |
Sorry, something went wrong.
|
@fengmk2 the env variable doesn't seem to work |
Sorry, something went wrong.
There was a problem hiding this comment.
Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.
Suppressed comments (2)action.yml:25
description: "Node.js version to install via `vp env use`. Defaults to Node.js latest LTS version. Pass `off` to disable."
src/index.ts:38
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"]);
Sorry, something went wrong.
|
@KTrain5169 I will take over this pr and try to improve it in all ci envs. |
Sorry, something went wrong.
…ith `node-version: off`
…on GitHub, GitLab, and Azure Replace the node-version: off sentinel with a tri-state node-manager input, wired through all three runtimes. Unset keeps the installer's auto-detection (enabled on CI). false passes VP_NODE_MANAGER=no to the install script (skips node/npm/npx/corepack shims) and runs vp env off after install so vp commands prefer the system Node.js. true force-enables the managed Node.js. node-manager: false fails fast when combined with node-version or node-version-file. The parser accepts YAML 1.2 boolean forms because Azure serializes booleans passed to string parameters as True/False.
There was a problem hiding this comment.
Copilot reviewed 22 out of 25 changed files in this pull request and generated no new comments.
Suppressed comments (3)action.yml:32
node-manager:
description: "Control Vite+'s Node.js version manager. When unset, the Vite+ installer decides (enabled on CI). Set to `false` to keep the Node.js already on the runner (e.g. from actions/setup-node or the runner image): shim creation is skipped and vp commands prefer the system Node.js. Set to `true` to force-enable the managed Node.js. Cannot be `false` together with node-version or node-version-file."
required: false
src/inputs.ts:13
const nodeVersion = getInput("node-version") || undefined;
const nodeVersionFile = getInput("node-version-file") || undefined;
const nodeManager = parseNodeManager(getInput("node-manager"));
if (nodeManager === false && (nodeVersion || nodeVersionFile)) {
throw new Error(
README.md:63
### Keep the Runner's Node.js The Vite+ installer enables its own Node.js version manager on CI. When Node.js is managed elsewhere (`actions/setup-node`, Flox, mise, or the runner image), disable it so `vp` and its shims use that Node.js:
Sorry, something went wrong.
…ger-off The Vite+ installer always downloads a managed Node.js LTS into $VP_HOME/js_runtime to install its own production dependencies with a deterministic runtime, independent of VP_NODE_MANAGER, so asserting an empty js_runtime cache was wrong. Assert observable behavior instead: vp exec node --version must match the runner's preinstalled Node.js.
There was a problem hiding this comment.
Copilot reviewed 22 out of 25 changed files in this pull request and generated no new comments.
Suppressed comments (3)README.md:71
- uses: voidzero-dev/setup-vp@v1.16.1
gitlab/setup-vp.yml:18
node-manager:
description: 'Control Vite+''s Node.js version manager. This is a string input: empty (default) lets the Vite+ installer decide (enabled on CI); "false" keeps the runner image''s Node.js (skips shim creation and makes vp commands prefer the system Node.js); "true" force-enables the managed Node.js.'
default: ""
azure/setup-vp.yml:28
- name: nodeManager
type: string
default: ""
Sorry, something went wrong.
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: 602d6ef780 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Sorry, something went wrong.
Bump the version to v1.17.0 in package.json, the README examples, and the setup-ref / setupRef defaults in the GitLab and Azure templates. Changes since v1.16.1: - feat: support disabling Vite+'s Node.js management with node-manager: false (#115) - fix: retry sfw vp install when sfw misreports vp as not found on Windows (#120) - chore(deps): update vite-plus to v0.2.8 (#119) - ci: re-run bundle rebuild when Renovate pushes to a labeled PR (#122) - chore: align Renovate release age for the whole vite-plus group (#121) After merge, tag the merge commit as v1.17.0 and push the tag.
| Back | FazBrowse Home | New Git URL |
Adds a tri-state node-manager input to GitHub, GitLab, and Azure. Unset keeps the installer's auto-detection (enabled on CI). false keeps the Node.js already on the runner: the install script skips node/npm/npx/corepack shims (VP_NODE_MANAGER=no) and the action runs vp env off so vp commands prefer the system Node.js. true force-enables the managed Node.js.
node-manager: false fails fast when combined with node-version or node-version-file. Supersedes the earlier node-version: off approach, which broke under YAML 1.1 parsers (GitLab) and mixed a mode into a version input.
Usage:
Closes the request from Discord for Flox and other external Node.js managers.