Skip to content

Building a release version of WCPay or WCS with a pre release subs core version

Eric Jinks edited this page Dec 8, 2022 · 2 revisions

When testing a version of subs-core in a close-to-production environment, it is preferable to bundle subs-core in a release version of WCS or WCpay, rather than use the standalone subscriptions-core plugin.

To build a release version of WCPay or WCS with a pre-release version of subs-core:

  1. In composer.json of WCPay or WCS, define the woocommerce/subscriptions-core version as trunk (or "dev-{branch}"). The minimum-stability configuration option will need to be set to dev if it hasn't already.
// composer.json
"require": {
    ...
	"woocommerce/subscriptions-core": "trunk"
},
"minimum-stability": "dev",
  1. Run composer update woocommerce/subscriptions.

  2. Check that ./vendor/woocommerce/subscriptions-core/changelog.txt includes the expected subscriptions-core changes from trunk.

  3. Run the build script of WCPay or WCS (npm run build).

  4. Unzip the resulting plugin zip and verify ./vendor/woocommerce/subscriptions-core/changelog.txt.

Clone this wiki locally