Skip to content

ci: bump registry-bridge action to content-addressed tarball URLs#2100

Open
fengmk2 wants to merge 3 commits into
mainfrom
bump-registry-bridge-cas
Open

ci: bump registry-bridge action to content-addressed tarball URLs#2100
fengmk2 wants to merge 3 commits into
mainfrom
bump-registry-bridge-cas

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jul 8, 2026

Copy link
Copy Markdown
Member

Points the preview-build action at pkg-pr-registry-bridge#58 (a83d8aa, merged + deployed), which makes preview tarballs content-addressed:

  • uploads to /-/tarball/<name>/<version>/<shasum>.tgz
  • dist.tarball = /tarballs/<name>/<version>/<shasum>.tgz

This fixes the ERR_PNPM_TARBALL_INTEGRITY a non-byte-reproducible rebuild of the same commit could cause: each build gets its own URL, so a republish can never cross bytes and integrity. The bridge is already deployed and back-compat (existing version-addressed previews still install via a revalidatable fallback), so this just activates the new upload path for future preview builds.

Add the preview-build label to smoke-test a labeled build against the deployed bridge.

Point the preview-build action at pkg-pr-registry-bridge#58 (a83d8aa), which
uploads tarballs content-addressed (/-/tarball/<name>/<version>/<shasum>.tgz) and
serves dist.tarball as /tarballs/<name>/<version>/<shasum>.tgz. This fixes the
ERR_PNPM_TARBALL_INTEGRITY a non-byte-reproducible rebuild of the same commit
could cause: each build gets its own URL, so a republish can never cross bytes
and integrity. The bridge is already deployed; this activates the new upload path
for preview builds.
@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit eaddff8
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a4e7f2b14a3180008cb6f8b

Comment thread .github/workflows/publish-preview.yml Outdated
@fengmk2 fengmk2 self-assigned this Jul 8, 2026
@fengmk2 fengmk2 requested review from Brooooooklyn and wan9chi July 8, 2026 16:44
@fengmk2 fengmk2 added the preview-build Publish this PR's commits to the registry bridge as preview builds label Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Registry bridge build (eaddff8)

This commit build is published to the registry bridge, which serves these as ordinary npm versions (every other package proxies to npmjs):

Package Version
vite-plus 0.0.0-commit.eaddff82ebc2d119734e91bf72a40b696e21c329
@voidzero-dev/vite-plus-core 0.0.0-commit.eaddff82ebc2d119734e91bf72a40b696e21c329

Install the Vite+ CLI built from this commit, then migrate a project:

# macOS / Linux
curl -fsSL https://vite.plus | VP_PR_VERSION=2100 bash
# Windows (PowerShell)
$env:VP_PR_VERSION="2100"; irm https://vite.plus/ps1 | iex

After installing, upgrade the current project's vite-plus to this test build with:

vp migrate

Or point your package manager at the bridge registry https://registry-bridge.viteplus.dev/:

Package manager Registry config
npm / pnpm / Bun .npmrc: registry=https://registry-bridge.viteplus.dev/
Yarn (v2+) .yarnrc.yml: npmRegistryServer: "https://registry-bridge.viteplus.dev/"

Then pin the build (vite aliases to vite-plus-core; pnpm can use a catalog, npm an overrides entry):

{
  "devDependencies": {
    "vite-plus": "0.0.0-commit.eaddff82ebc2d119734e91bf72a40b696e21c329",
    "vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.eaddff82ebc2d119734e91bf72a40b696e21c329"
  }
}

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🐳 Docker preview image

Built from this PR's registry bridge build:

Image Compressed size
ghcr.io/voidzero-dev/vite-plus:pr-2100 240MB
# remove any stale local copy from a previous run, then pull fresh
docker rmi ghcr.io/voidzero-dev/vite-plus:pr-2100 2>/dev/null; docker pull ghcr.io/voidzero-dev/vite-plus:pr-2100

Quick check:

docker run --rm ghcr.io/voidzero-dev/vite-plus:pr-2100 vp --version

See docs/guide/docker.md for usage.

@fengmk2 fengmk2 added preview-build Publish this PR's commits to the registry bridge as preview builds and removed preview-build Publish this PR's commits to the registry bridge as preview builds labels Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-build Publish this PR's commits to the registry bridge as preview builds

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant