[vite-plugin] publish v2 alpha builds - #15596
Open
edmundhung wants to merge 57 commits into
Open
edmundhung wants to merge 57 commits into
edmundhung wants to merge 57 commits into
Conversation
…15584) Co-authored-by: Aeon <aeon@users.noreply.github.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🦋 Changeset detectedLatest commit: 51f7ba5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
I'm Bonk, and I've done a quick review of your PR. Adds a push-triggered workflow to publish Vite plugin v2 alpha builds.
|
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
edmundhung
force-pushed
the
edmundhung/vite-plugin-v2-alpha-publish
branch
from
September 10, 2026 16:34
c2a2589 to
9f4d7c3
Compare
edmundhung
commented
Sep 10, 2026
edmundhung
commented
Sep 10, 2026
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
Co-authored-by: Pete Bacon Darwin <pbacondarwin@cloudflare.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wrangler automated PR updater <wrangler@cloudflare.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pete Bacon Darwin <pbacondarwin@cloudflare.com>
…export (#15420) Co-authored-by: Dario Piotrowicz <dario.piotrowicz@gmail.com>
… storageScope (#15527) Co-authored-by: Christopher Little-Savage <clittle-savage@cloudflare.com>
…dates (#15633) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wrangler automated PR updater <wrangler@cloudflare.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wrangler automated PR updater <wrangler@cloudflare.com>
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
…s worker thread is preempted (#15552) Co-authored-by: Christopher Little-Savage <clittle-savage@cloudflare.com>
edmundhung
force-pushed
the
edmundhung/vite-plugin-v2-alpha-publish
branch
from
September 16, 2026 11:23
6cfcd4e to
9e0ed4c
Compare
Publish each vite-plugin-v2 branch update as a commit-derived 2.0.0 alpha under the v2 npm dist-tag, independently of Changesets releases on main. Cancel stale runs and reject branch-only changes to pinned workspace dependencies. ## vite-plugin-v2-alpha.yml The workflow builds the plugin, verifies the packed artifact in a clean npm project, and publishes through npm trusted publishing. Reviewable-Commit-Version: 1
Use published versions of external workspace packages for v2 alpha builds while bundled workspace packages continue using local code. Align Workerd with the pinned Miniflare release and remove the unused Wrangler dependency. ## package.json Config, the unenv preset, Miniflare, and Workerd resolve to explicit published versions; Wrangler is no longer a runtime or peer dependency. ## deps.ts The temporary workspace-package pins remain external until the final v2 release. Reviewable-Commit-Version: 1
edmundhung
force-pushed
the
edmundhung/vite-plugin-v2-alpha-publish
branch
from
September 16, 2026 12:07
9e0ed4c to
012f479
Compare
Comment on lines
+64
to
+68
| pnpm pack --pack-destination "$RUNNER_TEMP" | ||
| mkdir "$RUNNER_TEMP/vite-plugin-install-test" | ||
| cd "$RUNNER_TEMP/vite-plugin-install-test" | ||
| npm init --yes | ||
| npm install --ignore-scripts --package-lock-only "$RUNNER_TEMP"/cloudflare-vite-plugin-*.tgz |
Contributor
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Publish
@cloudflare/vite-pluginv2 alphas from thevite-plugin-v2branch without affecting v1 releases frommain.Each successful branch update publishes
2.0.0-alpha.sha-<short-sha>under thev2npm tag. Stale runs are cancelled, branch-only changes to pinned workspace dependencies are rejected, and the packed artifact is installed before publishing.The alpha pins
@cloudflare/config@0.13.0,@cloudflare/unenv-preset@2.16.1,miniflare@5.20260915.0-alpha, andworkerd@1.20260915.1. Workerd matches Miniflare; Wrangler is removed because the plugin no longer uses it. Bundled workspace dependencies continue using local code.Before merging, configure
vite-plugin-v2-alpha.ymlas an npm trusted publisher for@cloudflare/vite-plugin, with direct publishing enabled.Validated with the Vite plugin build, dependency/catalog/workflow checks, 49 focused tests, and a clean tarball installation.
Note
This is a contribution from an AI agent: Codex.