Skip to content

[vite-plugin] publish v2 beta builds - #15752

Merged
edmundhung merged 1 commit into
vite-plugin-v2from
edmundhung/vite-plugin-v2-preview-tag
Sep 23, 2026
Merged

edmundhung merged 1 commit into
vite-plugin-v2from
edmundhung/vite-plugin-v2-preview-tag

Conversation

@edmundhung

@edmundhung edmundhung commented Sep 21, 2026

Copy link
Copy Markdown
Member

Follow-up to #15596.

npm rejects v2 as a dist-tag because it is a valid SemVer range. This publishes each branch build as 2.0.0-beta.sha-<short-sha> under the beta tag.

The workflow is renamed to vite-plugin-v2-preview.yml so its npm trusted-publisher registration can remain stable throughout the prerelease lifecycle.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because: this only changes the workflow filename, generated prerelease version, and npm dist-tag
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: this is an internal prerelease workflow change

@changeset-bot

changeset-bot Bot commented Sep 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 63a6f15

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@edmundhung edmundhung added ci:no-tests Skip pull request checks for tests ci:no-changeset-required Skip pull request checks for a valid changeset labels Sep 21, 2026
@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Sep 21, 2026
@ask-bonk

ask-bonk Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

LGTM!

github run

@edmundhung
edmundhung force-pushed the edmundhung/vite-plugin-v2-preview-tag branch from 2f70ab5 to d7a2ae8 Compare September 21, 2026 16:10
@edmundhung edmundhung changed the title [vite-plugin] use stable preview dist-tag [vite-plugin] use valid v2 alpha dist-tag Sep 21, 2026
@edmundhung
edmundhung marked this pull request as ready for review September 21, 2026 16:12
@workers-devprod
workers-devprod requested review from a team and NuroDev and removed request for a team September 21, 2026 16:12
@workers-devprod

workers-devprod commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note

This report is out of date. Scroll down for Devin Review's latest report on this PR.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Sep 21, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15752

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15752

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@15752

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15752

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@15752

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@15752

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@15752

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@15752

miniflare

npm i https://pkg.pr.new/miniflare@15752

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15752

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@15752

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@15752

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@15752

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@15752

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15752

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@15752

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@15752

wrangler

npm i https://pkg.pr.new/wrangler@15752

commit: 63a6f15

npm rejects v2 as a dist-tag because it is a valid SemVer range. Publish
2.0.0 beta prereleases under the beta tag while keeping a
lifecycle-neutral workflow filename for npm trusted publishing.

## vite-plugin-v2-preview.yml

The workflow generates 2.0.0-beta.sha-<commit> versions and publishes
them as @cloudflare/vite-plugin@beta. Its preview filename can remain
registered with npm throughout the prerelease lifecycle.

Reviewable-Commit-Version: 1
@edmundhung
edmundhung force-pushed the edmundhung/vite-plugin-v2-preview-tag branch from d7a2ae8 to 63a6f15 Compare September 21, 2026 16:27
@edmundhung edmundhung changed the title [vite-plugin] use valid v2 alpha dist-tag [vite-plugin] publish v2 beta builds Sep 21, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

Devin Review

Comment thread .github/workflows/vite-plugin-v2-preview.yml

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Sep 21, 2026
@edmundhung
edmundhung merged commit c82c3ef into vite-plugin-v2 Sep 23, 2026
62 of 64 checks passed
@edmundhung
edmundhung deleted the edmundhung/vite-plugin-v2-preview-tag branch September 23, 2026 08:26
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:no-changeset-required Skip pull request checks for a valid changeset ci:no-tests Skip pull request checks for tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants