-
Notifications
You must be signed in to change notification settings - Fork 5
Workflow for Plugin Release
Shreyas Ikhar edited this page Oct 19, 2022
·
3 revisions
Assuming the new version to be release is version 2.0
- Ensure the new version is correctly mentioned in
readme.txt,README.mdandplugin-main-file.php - Ensure the new functionality/bug fixes are added in the
Changelogsection ofreadme.txt - Ensure all plugin contributors are properly listed in
readme.txtandREADME.md. Eg. New developers are working on the plugin, so their WordPress usernames need to be added inContributorssection ofreadme.txtandREADME.md - Ensure any new functionality that is added is compliant with the minimum WordPress version the plugin requires that is specified as
Requires at leastinreadme.txt - Ensure to modify the
Tested up toWordPress version inreadme.txtbased on the latest WordPress version - Ensure the code works correctly with the PHP version as specified in
Requires PHPof thereadme.txtfile. - Ensure the version number in
package.jsonandpackage-lock.jsonis same as the new version of plugin.npm version 2.0.0 - Ensure the version number in
.pofile is same as the new version of plugin and copyright year is updated with the current year.npm run language - If the repo requires the
vendordirectory to be committed in the repo, ensure to update those packages and test with latest packages before release.composer update - If the repo requires the
builddirectory to be committed in the repo, ensure to build the assets prior to release.npm run prod - A final test of the plugin should be done in completely new installations of WordPress with both the latest version of WordPress and the minimum version of WordPress supported by the plugin with error logs enabled and see if there’s any errors being thrown by our plugin.
- Create a Git tag locally for the new version of the plugin once all pre-release checkpoints are met.
git tag 2.0 - Ensure the tag was correctly created by going through the output of following command:
git tag - Push the new tag to the plugin’s GitHub repo
git push origin 2.0 - Wait for GitHub action to complete and release the plugin on [WordPress.org](http://WordPress.org)
You can check the status of the GitHub action by going through the
Actionstab in the GitHub repohttps://github.com/{repo}/actions
Once the plugin is released, there are a few things that need to be checked.
- Check if the new version number pushed is added correctly as tags in the SVN repo
- Check if new contributors are being displayed correctly
- Check if build directory assets are correctly sent to the SVN repo
- Check if the vendor directly has been correctly added to the SVN repo
- From within a new installation of WordPress, try to install the plugin directly via searching the name of the plugin in the Add New plugin page in WordPress Dashboard.
- Go through the error logs for any errors.