-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[vite-plugin] publish v2 alpha builds #15596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: vite-plugin-v2
Are you sure you want to change the base?
Changes from all commits
24ef86b
5e0d6d3
dbc9506
96688b3
b605aa6
bb741ac
41d7366
c2699bf
7d39eed
47d906f
9109a76
6cd67de
945aaa3
00ae21f
3f42b10
c846bd8
60d40f8
8997652
164e4fb
a256f95
4e5f2b9
13e6372
da6a505
14ed9af
c4a6279
6c15da1
e03822a
a0856da
1be7b97
fa79b26
76c0ce6
cb0955f
c103dd6
641df47
ca71205
16d1310
b149147
ffabe74
d3565a5
74bf083
40dd545
982b806
e35c4a1
a83d7ac
1015cfb
7db596c
bbf2f79
be2437a
f2b3a6d
71b6f10
6d37984
ad23e6e
53c2189
6f3d7b5
e038bc6
012f479
51f7ba5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| "miniflare": minor | ||
| "wrangler": patch | ||
| --- | ||
|
|
||
| Align Local Explorer Workflow instance status requests with production | ||
|
|
||
| Local Explorer and Wrangler local mode now use the production-compatible `status` request field for pausing, resuming, restarting, and terminating Workflow instances. Direct Local Explorer API consumers must replace the previous `action` field with `status`. | ||
|
|
||
| Successful Local Explorer status updates now return the production-compatible instance `status` and response `timestamp` instead of the local-only `result.success` acknowledgement. |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| "@cloudflare/deploy-helpers": patch | ||
| "wrangler": patch | ||
| --- | ||
|
|
||
| Send exports with Worker Preview deployments | ||
|
|
||
| `wrangler preview` dropped the `exports` block from deployment requests. Durable Objects reached through `ctx.exports` had no Preview namespace, and cache settings for each entrypoint were lost too. |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| "miniflare": patch | ||
| --- | ||
|
|
||
| Prevent synchronous binding calls from failing intermittently under load | ||
|
|
||
| Miniflare now keeps synchronous binding requests and responses correctly paired when background work is delayed. This prevents rare cascades of assertion failures in local development and CI, including when using synchronous D1 methods such as `prepare()` and `bind()`. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| "@cloudflare/autoconfig": patch | ||
| --- | ||
|
|
||
| Stop adding a `preview` script when configuring projects for `cf` | ||
|
|
||
| Projects can continue using their existing development and preview scripts, or invoke `cf dev` directly. Wrangler-targeted autoconfiguration continues to add its existing `preview` script. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| "create-cloudflare": patch | ||
| --- | ||
|
|
||
| Prevent the common template's proxy and redirect examples from accepting arbitrary destinations | ||
|
|
||
| The examples now use fixed destinations that developers can change in the generated source instead of destinations supplied by unauthenticated requests. |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| name: Publish Vite plugin v2 alpha | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - vite-plugin-v2 | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| env: | ||
| # This workflow only builds and publishes — it never runs Playwright tests. | ||
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" | ||
|
|
||
| jobs: | ||
| publish: | ||
| if: ${{ github.repository_owner == 'cloudflare' }} | ||
| name: Publish @cloudflare/vite-plugin@v2 | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| steps: | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
|
|
||
| - name: Check pinned workspace dependencies | ||
| run: | | ||
| git fetch --no-tags origin main | ||
| git diff --exit-code origin/main...HEAD -- \ | ||
| packages/config \ | ||
| packages/miniflare \ | ||
| packages/unenv-preset | ||
|
|
||
| - name: Install Dependencies | ||
| # Defense in depth: do not pass Turbo remote cache credentials and | ||
| # disable the pnpm store cache so release builds always resolve | ||
| # packages from the registry and rebuild every task from source. | ||
| uses: ./.github/actions/install-dependencies | ||
| with: | ||
| node-version: 24.18.0 | ||
| disable-cache: "true" | ||
|
devin-ai-integration[bot] marked this conversation as resolved.
|
||
|
|
||
| - name: Check npm version | ||
| run: node -r esbuild-register tools/deployments/check-npm-version.ts | ||
|
|
||
| - name: Set alpha version | ||
| run: npm version "2.0.0-alpha.sha-${GITHUB_SHA:0:9}" --no-git-tag-version | ||
| working-directory: packages/vite-plugin-cloudflare | ||
|
|
||
| - name: Build | ||
| run: pnpm build --filter @cloudflare/vite-plugin | ||
| env: | ||
| CI_OS: ${{ runner.os }} | ||
| NODE_ENV: production | ||
|
|
||
| - name: Verify package dependencies | ||
| run: | | ||
| 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 | ||
|
Comment on lines
+64
to
+68
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| working-directory: packages/vite-plugin-cloudflare | ||
|
edmundhung marked this conversation as resolved.
|
||
|
|
||
| - name: Publish @cloudflare/vite-plugin@v2 | ||
| run: pnpm publish --tag v2 --access public --no-git-checks | ||
|
edmundhung marked this conversation as resolved.
|
||
| working-directory: packages/vite-plugin-cloudflare | ||
Uh oh!
There was an error while loading. Please reload this page.