-
Notifications
You must be signed in to change notification settings - Fork 33
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:
- In
composer.json
of WCPay or WCS, define thewoocommerce/subscriptions-core
version astrunk
(or"dev-{branch}"
). Theminimum-stability
configuration option will need to be set todev
if it hasn't already.
// composer.json
"require": {
...
"woocommerce/subscriptions-core": "trunk"
},
"minimum-stability": "dev",
-
Run
composer update woocommerce/subscriptions
. -
Check that
./vendor/woocommerce/subscriptions-core/changelog.txt
includes the expectedsubscriptions-core
changes fromtrunk
. -
Run the build script of WCPay or WCS (
npm run build
). -
Unzip the resulting plugin zip and verify
./vendor/woocommerce/subscriptions-core/changelog.txt
.