Releasing¶
This project keeps the package version in the transport build config. A release is just:
- update the version metadata
- update the changelog
- build the transport package
- verify the generated zip
Increment The Version Number¶
Edit _build/build.config.php and change the version value:
return [
'name' => 'twig',
'display_name' => 'Twig',
'namespace' => 'twig',
'version' => '0.2.0',
'release' => 'pl',
// ...
];
For a normal release, increment version and leave release as pl unless you intentionally need a different MODX release channel.
Update The Changelog¶
Add the new release at the top of CHANGELOG.md:
Keep the newest version first so the package metadata shows the latest notes during install.
Build The Package¶
Use the DDEV-backed MODX install, not the host PHP environment.
To rebuild and reinstall locally:
That script:
- runs
composer install --working-dir=core/components/twig - builds the transport package with
_build/build.transport.php - reinstalls the package into the local MODX database with
bin/install-dev-package.php
If you only need the zip and do not want to reinstall it:
Output¶
The build writes the artifact to:
The extracted package is also available in:
Verify The Release¶
After building, check:
_build/build.config.phphas the version you meant to release.core/packages/twig-<version>-pl.transport.zipexists.core/packages/twig-<version>-pl/manifest.phpcontainsreadme,license, andchangelog.- The changelog entry in
CHANGELOG.mdmatches the package version.
For the targeted packaging regression test, run: