workers-sdk
workers-sdk copied to clipboard
`wrangler versions upload` ignores `--tag` and `--message` arguments for Static Assets deployments
What versions & operating system are you using?
Wrangler v4.20.3, Node v22.16.0, Ubuntu 24.04.2 LTS
Please provide a link to a minimal reproduction
wrangler.jsonc defined as follows
{
"name": "example",
"compatibility_date": "2025-06-14",
"assets": {
"directory": "./public",
"not_found_handling": "404-page"
}
}
And running
wrangler versions upload --tag "abc123" --message "feat: Added xyz"`
Describe the Bug
When using wrangler versions upload with --tag and --message arguments for a project that is solely a static assets deployment (i.e. no workers script added) the arguments are ignored. The resulting deployment in workers is created without the specified tag or message.
[!NOTE] After some further testing, this is only happening on deployments without a workers script provided (i.e. static only).
Expected Behavior: The uploaded version should have the specified tag and message applied, and show in the workers dashboard under Version Tag & Message
Actual Behavior: The version is uploaded successfully, but the tag and message are not set. No error is reported during the upload process.
This is with a basic static site (using Hugo), following the latest pages migration guide to create a wrangler.toml (or jsonc in my case)
Running wrangler completes, with the version being uploaded successfully - just the metadata doesn't make it.
I suspect this isn't intended behaviour, given it works for worker deployments otherwise - just static ones it breaks on - suspect something needs tweaking in wrangler/the backend.
Please provide any relevant error logs
N/A