diff --git a/.changeset/fix-preview-wrangler-version.md b/.changeset/fix-preview-wrangler-version.md new file mode 100644 index 00000000..0adb9c1a --- /dev/null +++ b/.changeset/fix-preview-wrangler-version.md @@ -0,0 +1,5 @@ +--- +"wrangler-action": patch +--- + +Pin Workers Preview examples and integration tests to Wrangler 4.136.3, which includes the Worker name in Preview artifacts. diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 129c3297..b283b506 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -118,7 +118,7 @@ jobs: uses: ./ with: workingDirectory: "./src/test/fixtures/only-build" - wranglerVersion: "4.136.0" + wranglerVersion: "4.136.3" apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: preview --name wrangler-action-ci-test @@ -132,7 +132,7 @@ jobs: uses: ./ with: workingDirectory: "./src/test/fixtures/only-build" - wranglerVersion: "4.136.0" + wranglerVersion: "4.136.3" apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: preview delete --name wrangler-action-ci-test --skip-confirmation diff --git a/README.md b/README.md index d4cf35b2..7166ee00 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - wranglerVersion: "4.136.0" + wranglerVersion: "4.136.3" command: preview --name pr-${{ github.event.pull_request.number }} gitHubToken: ${{ secrets.GITHUB_TOKEN }} ``` diff --git a/src/wranglerArtifactManager.test.ts b/src/wranglerArtifactManager.test.ts index 675c852f..e6673118 100644 --- a/src/wranglerArtifactManager.test.ts +++ b/src/wranglerArtifactManager.test.ts @@ -188,7 +188,7 @@ describe("wranglerArtifactsManager", () => { mockfs({ testOutputDir: { "wrangler-output-2024-10-17_18-48-40_463-2e6e83.json": ` - {"version": 1, "type":"wrangler-session", "wrangler_version":"4.136.0", "command_line_args":["preview"], "log_file_path": "/here"} + {"version": 1, "type":"wrangler-session", "wrangler_version":"4.136.3", "command_line_args":["preview"], "log_file_path": "/here"} {"version": 1, "type":"preview", "worker_name":"example-worker", "preview_id":"preview-id", "preview_name":"feature-branch", "preview_slug":"feature-branch", "preview_urls":["https://feature-branch.example-worker.workers.dev"], "deployment_id":"deployment-id", "deployment_urls":["https://deployment-id.example-worker.workers.dev"]}`, "not-wrangler-output.json": "test", },