Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 2.05 KB

MAINTENANCE.md

File metadata and controls

40 lines (25 loc) · 2.05 KB

Maintenance

Publishing preview packages

Add the preview-build label to the PR. Each labeled commit is published to the registry bridge as the npm version 0.0.0-commit.<sha>; the PR gets a sticky comment with the exact version and install steps.

Install a preview build with the install script (PR number or commit sha):

curl -fsSL https://vite.plus | VP_PR_VERSION=1569 bash

Or pin it in a project through the bridge registry (.npmrc: registry=https://registry-bridge.viteplus.dev/):

pnpm add vite-plus@0.0.0-commit.<sha>

Publishing releases

The release workflow publishes platform packages before @voidzero-dev/vite-plus-core, then publishes vite-plus. It checks that the required package versions and tarballs are available before continuing to dependent steps.

@voidzero-dev/vite-plus-core has its own version, which encodes the bundled Vite version (for example, 8.3.5000 for Vite 8.3.5). The prepare release workflow selects it from the registry and prints both versions in the release PR. The platform packages, vite-plus, and create-vite-plus use the vite-plus version. See Core Version.

The propagation helper defaults to a 10-minute timeout and an additional 60-second wait for CDN propagation after availability checks pass.

Recovering from a propagation timeout

A propagation timeout fails the release job and stops subsequent steps. This does not mean npm rejected the upload; npm may have accepted it and still be scanning the packages.

Keep the same version when resuming the release:

  1. Wait until the affected package versions and tarballs are available on npm.
  2. Open the failed workflow run in GitHub Actions and select Re-run failed jobs.

The publish helper skips versions that npm has published, and the workflow checks availability again before continuing.