-
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.md
andplugin-main-file.php
- Ensure the new functionality/bug fixes are added in the
Changelog
section ofreadme.txt
- Ensure all plugin contributors are properly listed in
readme.txt
andREADME.md
. Eg. New developers are working on the plugin, so their WordPress usernames need to be added inContributors
section ofreadme.txt
andREADME.md
- Ensure any new functionality that is added is compliant with the minimum WordPress version the plugin requires that is specified as
Requires at least
inreadme.txt
- Ensure to modify the
Tested up to
WordPress version inreadme.txt
based on the latest WordPress version - Ensure the code works correctly with the PHP version as specified in
Requires PHP
of thereadme.txt
file. - Ensure the version number in
package.json
andpackage-lock.json
is same as the new version of plugin.npm version 2.0.0
- Ensure the version number in
.po
file 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
vendor
directory 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
build
directory 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
Actions
tab 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.