Skip to content

Release Process

Gan Eng Chin edited this page Oct 11, 2022 · 8 revisions

Prepping for release:

  1. Download the woorelease.zip from the latest release, and store the phar somewhere locally.

  2. Create a release branch off of develop branch, or cherry-pick commits onto the branch

git checkout develop
git checkout -b release/x.x.x

Simulated release

product_version=<new version to be released>

# The following is optional for when a newer version of WC or WP has been released.
# More info: https://github.com/woocommerce/woorelease/wiki/Usage
wc_tested=<latest compatible WC version>
wp_tested=<latest compatible WP version>

# Branch should be a release branch
woorelease simulate --product_version=x.x.x --wc_tested=y.y --generate_changelog https://github.com/woocommerce/pinterest-for-woocommerce/tree/release/x.x.x

Note: Select y when prompted "Would you like to add/delete them in the svn working copy?"

Review the changelog

If you're using the latest woorelease you should have all the PRs covered. However, check in case there are some entries missing, need reword, or to be deleted. You can either change/delete them manually, or edit respective PRs by changing its title, ### Changelog entry section, or assigning the changelog: none label.

If you changed something manually, copy the result, so you could use it in the final release.

Check build

  1. Check temporary folder for pinterest-for-woocommerce.zip
  2. Install zip file on a test site
  3. Confirm it activates without warnings/errors and is showing the right versions
  4. Run a few basic smoke tests

Final release

  1. Run:
woorelease release --product_version=x.x.x --wc_tested=y.y --generate_changelog https://github.com/woocommerce/pinterest-for-woocommerce/tree/release/x.x.x
  1. When prompted for changelog entries double-check, and apply any changes (from simulation phase) if needed.
  2. Create a PR to merge the release branch back to develop. Example: https://github.com/woocommerce/pinterest-for-woocommerce/pull/439
Clone this wiki locally