GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — docs: clarify automatic Node.js resolution by fengmk2 · Pull Request #130 · voidzero-dev/setup-vp Conversation
|
|
preview build ci fails will be fixed in #131 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR updates the action’s documentation to clarify that when node-version and node-version-file are omitted, Node.js version selection is delegated to Vite+’s own project-based resolution, and adds CI coverage to ensure package.json#devEngines.runtime is honored in that scenario.
Changes:
node-version default behavior as “Vite+ resolution” (instead of “Latest LTS”) and describe Vite+’s project/user-default/LTS fallback chain.action.yml input description to reflect the same “omit inputs to let Vite+ resolve” behavior.v22.18.0 from package.json#devEngines.runtime when no Node inputs are provided.Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| README.md | Updates the inputs table and adds a paragraph explaining Vite+ Node.js auto-resolution when node inputs are omitted. |
| action.yml | Clarifies the node-version input description to match the documented “Vite+ resolves” behavior. |
| .github/workflows/test.yml | Adds an end-to-end workflow job asserting devEngines.runtime is honored with no explicit node inputs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
action.yml:26
node-version:
description: "Node.js version to install via `vp env use`. Omit this input and node-version-file to let Vite+ resolve the version. `vp env default <version>` sets the user-level default. Vite+ checks the project, this default, and then the latest LTS release."
required: false
.github/workflows/test.yml:160
node --version, which could pass even if the action did not activate Vite+'s managed Node.js (e.g., if the runner image happens to already have v22.18.0). To make the regression test robust, also assert that node resolves to the Vite+ shim location (like $HOME/.vite-plus/bin/node on Linux). echo "Node.js version: $ACTUAL"
if [ "$ACTUAL" != "v22.18.0" ]; then
echo "::error::expected Node.js v22.18.0 from devEngines.runtime, got $ACTUAL"
exit 1
fi
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Bump `package.json`, README examples, and the GitLab and Azure template defaults to `v1.18.0`. Changes since `v1.17.0`: - Resolve Vite+ executable paths from `VpDirs` (#131). - Add GitLab end-to-end tests (#132). - Clarify automatic Node.js version selection (#130). - Pin the install script to the requested version (#127). - Update `pnpm/action-setup` to `v6.0.10` (#124). - Update `vite-plus` to `v0.2.9` (#125). After merge, create the annotated tag `v1.18.0` on the merge commit. Push the tag.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Node version resolution doesn't match the behavior ofvp env by default
There was an error while loading. Please reload this page.