Skip to content

cf-orbs 0.2.4

Choose a tag to compare

@github-actions github-actions released this 03 Nov 21:22
· 8 commits to main since this release

Added

  • init --adopt: take over a Worker of the same name that this folder did not create. A new control token replaces the old one, and this folder's config and image/ are deployed. init prints one warning.

Fixed

  • init in a folder with no saved deployment and no control token now stops when a Worker of the same name already exists in the account. Before, it deployed over that Worker: new control token, default config and image, old image keys dropped. The check runs wrangler deployments list --json --name <name> before any token, secret or deploy, in every mode. If the check cannot run, init warns and goes on. A rerun in the same folder is not checked. Neither is a folder that has .cf-orbs/control-token (a run that failed before it saved the URL, or a restored backup): it keeps the same token. Restoring on a new machine without the control token needs --adopt.