GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: clarify automatic Node.js resolution by fengmk2 · Pull Request #130 · voidzero-dev/setup-vp

Conversation

@fengmk2

@fengmk2 fengmk2 commented Aug 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

We updated README.md and action.yml to describe Vite+ Node.js version selection. The input table now shows Vite+ resolution as the node-version default.

If users omit node-version and node-version-file, Vite+ resolves the version from the project. It checks these sources in order:

  1. .node-version
  2. package.json#devEngines.runtime
  3. package.json#engines.node
  4. .nvmrc

Vite+ uses the user-level default if no project source exists. Set this default with vp env default <version>. Vite+ uses the latest LTS release if no user-level default exists.

We added a CI test for devEngines.runtime. The test resolves Node.js v22.18.0 without an explicit Node.js input.

We changed documentation and tests. We kept the action runtime unchanged.

Closes #128

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JstnMcBrd reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@fengmk2
test: reproduce automatic Node.js resolution
4fb9c03
@fengmk2 fengmk2 mentioned this pull request Aug 18, 2026
Node version resolution doesn't match the behavior of vp env by default #128
Closed
@fengmk2
docs: clarify automatic Node.js resolution
5d4cabd
@fengmk2 fengmk2 changed the title test: reproduce automatic Node.js resolution docs: clarify automatic Node.js resolution Aug 19, 2026
fengmk2 added 2 commits August 19, 2026 10:37
@fengmk2
docs: define the Vite+ user-level default
bcd8890
@fengmk2
docs: avoid the Vite+ default storage path
1f1d87d
@fengmk2
fengmk2 marked this pull request as ready for review August 19, 2026 02:39
Copilot AI lite review requested due to automatic review settings August 19, 2026 02:39
@fengmk2

fengmk2 commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

preview build ci fails will be fixed in #131

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of fengmk2 August 19, 2026 02:40
View session
Copilot AI reviewed Aug 19, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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:

  • Document node-version default behavior as “Vite+ resolution” (instead of “Latest LTS”) and describe Vite+’s project/user-default/LTS fallback chain.
  • Update action.yml input description to reflect the same “omit inputs to let Vite+ resolve” behavior.
  • Add a CI workflow job that verifies Node.js resolves to v22.18.0 from package.json#devEngines.runtime when no Node inputs are provided.

Reviewed changes

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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2
docs: clarify Node.js resolution directory
20c0bb6
Copilot AI review requested due to automatic review settings August 19, 2026 02:50
Copilot started reviewing on behalf of fengmk2 August 19, 2026 02:50
View session
Copilot AI reviewed Aug 19, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Suppressed comments (2)

action.yml:26

  • The node-version input description suggests Vite+ will resolve a Node.js version when node-version/node-version-file are omitted, but that only applies when the Vite+ Node.js manager is enabled (node-manager unset/true). If node-manager ends up disabled, omitting these inputs means the workflow will keep using the runner/system Node.js with no Vite+ resolution.
  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

  • This test only asserts 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fengmk2
fengmk2 merged commit e8f4d95 into main Aug 19, 2026
48 of 50 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2
fengmk2 deleted the agent/reproduce-node-resolution-128 branch August 19, 2026 03:17
@fengmk2 fengmk2 mentioned this pull request Aug 24, 2026
chore: release v1.18.0 #133
Merged
fengmk2 added a commit that referenced this pull request Aug 24, 2026
@fengmk2
chore: release v1.18.0 (#133)
1b32467
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.
@everton-dgn everton-dgn mentioned this pull request Oct 12, 2026
Expose the resolved Node.js and package manager versions as outputs #198
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Node version resolution doesn't match the behavior of vp env by default

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@fengmk2
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.