Skip to content

feat: add VP_VERSION env var for install script compatibility#40

Merged
fengmk2 merged 2 commits intomainfrom
feat/vp-env-var-compat
Mar 29, 2026
Merged

feat: add VP_VERSION env var for install script compatibility#40
fengmk2 merged 2 commits intomainfrom
feat/vp-env-var-compat

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Mar 29, 2026

Summary

  • Set both VP_VERSION (new) and VITE_PLUS_VERSION (legacy) env vars when invoking the vite-plus install script
  • Ensures the action works with vite-plus versions before and after the VP_* env var rename (refactor(env)!: rename VITE_PLUS_* env vars to VP_* prefix vite-plus#1166)
  • Includes a TODO comment to remove VITE_PLUS_VERSION once old versions are no longer supported

Test plan

🤖 Generated with Claude Code

Set both VP_VERSION (new) and VITE_PLUS_VERSION (legacy) when invoking
the install script, so the action works with vite-plus versions before
and after the VP_* env var rename.

Ref: voidzero-dev/vite-plus#1166
@fengmk2 fengmk2 self-assigned this Mar 29, 2026
Copilot AI review requested due to automatic review settings March 29, 2026 14:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the GitHub Action’s Vite+ installation step to be compatible with vite-plus versions before/after the upstream environment variable rename by setting both the new and legacy version env vars when running the install script.

Changes:

  • Set both VP_VERSION and legacy VITE_PLUS_VERSION in the install script environment.
  • Add a TODO to remove the legacy env var once older vite-plus versions are no longer supported.
  • Regenerate dist/index.mjs to reflect the runtime change (action entrypoint).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/install-viteplus.ts Pass both new/legacy version env vars into the install script invocation.
dist/index.mjs Compiled bundle updated to include the new env var behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: MK (fengmk2) <fengmk2@gmail.com>
Copilot AI review requested due to automatic review settings March 29, 2026 14:22
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 1 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengmk2 fengmk2 merged commit e34774b into main Mar 29, 2026
39 checks passed
@fengmk2 fengmk2 deleted the feat/vp-env-var-compat branch March 29, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants