← Back
Editing: RELEASING.md
# Releasing WooCommerce Checkout Field Editor Releases run through the [Release workflow](https://github.com/woocommerce/woocommerce-checkout-field-editor/actions/workflows/release.yml), triggered manually from the Actions tab. This extension is published to WooCommerce.com only. It is not on WordPress.org, so there is no SVN step. You do not need a personal access token: the workflow uses the organization-level `botwoo` secrets. ## Before you start Add release notes under `Unreleased` in `changelog.txt` and merge them to `trunk`, or commit them to an existing `release/x.y.z` branch. Use this format: ```text Unreleased * Tweak - WC 11.1 compatibility. ``` Release prep converts `Unreleased` to the requested version's heading, preserving the notes below it, and woorelease stamps the release date. A dry run previews these changes without committing them. An existing heading such as `xxxx-xx-xx - version 1.7.26` or a dated entry for the requested version is also supported and takes precedence over `Unreleased` when rerunning prep. Its date is refreshed by woorelease. Prep fails if neither a matching version heading nor a single `Unreleased` heading exists. ## Part 1: Release prep 1. Open the [Release workflow](https://github.com/woocommerce/woocommerce-checkout-field-editor/actions/workflows/release.yml). 2. Select **Run workflow**. Enter the release **Version** (`x.y.z`), select `release prep`, enter the WooCommerce and WordPress versions that were tested, and leave **Dry run** enabled. 3. Inspect the version-bump diff in the job summary. 4. If the preview is correct, run the same step again with **Dry run** disabled. 5. Confirm that the workflow created `release-prep/x.y.z` and opened a `Release prep: x.y.z` pull request into `release/x.y.z`. 6. Review the changelog and confirm that `Version`, `WC tested up to`, and `Tested up to` in `woocommerce-checkout-field-editor.php` are correct. 7. Merge the prep pull request into `release/x.y.z`. The prep step is rerunnable. A later run updates the same branch and pull request without discarding review edits made on the prep branch. ## Part 2: Release 1. Open the Release workflow again and select **Run workflow**. 2. Enter the same **Version**, select `release`, and leave **Dry run** enabled. 3. Download the artifact named after the version. Confirm that its plugin headers and contents are correct. 4. Run the release step again with **Dry run** disabled. 5. Confirm that the `x.y.z` tag and GitHub release exist, then check the [Checkout Field Editor product page](https://woocommerce.com/products/woocommerce-checkout-field-editor/). The product page is the reliable record of the version customers receive. 6. Merge the `Release x.y.z` pull request opened by the workflow to bring the release changes back into `trunk`. ## Publishing one target at a time You can delete a GitHub release and tag, but WooCommerce.com does not allow an uploaded version to be replaced. To reduce risk, publish to GitHub first by disabling **Release only: upload to WooCommerce.com**. Inspect the GitHub release, then run the workflow again with GitHub publishing disabled and WooCommerce.com publishing enabled. The second run warns that the tag already exists. This is expected when only the WooCommerce.com target is selected. ## Recovering from a partial failure The workflow uploads to WooCommerce.com before creating the GitHub release. A late failure may therefore mean that the package is already live. Do not rerun both targets without checking. 1. Check the [product page](https://woocommerce.com/products/woocommerce-checkout-field-editor/) to determine whether the new version is live. 2. If WooCommerce.com has the correct package, rerun the release step for GitHub only. 3. If WooCommerce.com has the wrong package, prepare and release a new patch version; the uploaded version cannot be replaced. If GitHub publishing fails with woorelease error 61, verify that `botwoo` is a collaborator with write access: ```bash gh api repos/woocommerce/woocommerce-checkout-field-editor/collaborators/botwoo/permission ```
Save File
Cancel