Added autoloader-suffix
in composer config
#166
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
As described in #164, "Plugin asset/readme update" GH action is failing to deploy readme.txt because of autoload files of the composer. Composer generates new autoload files during composer install in GH action, which are different from the files commited in the svn repo of wp.org.
This PR adds
autoloader-suffix
in the composer config to generate the same autoload files with every install. So, the readme.txt file can deploy on minor changes or wp tested up to bumps.Value of
autoloader-suffix
is in this format 10up{PLUGIN_NAME}{PLUGIN_VERSION} =>10upAutoshareForTwitterV111
Closes #164
Alternate Designs
We may use the
IGNORE_OTHER_FILES
option of GH action, but I feelautoloader-suffix
is a better approach here, because withIGNORE_OTHER_FILES
readme.txt file will be deployed with every change in it. (Think of readme update for plugin version bump merged in the trunk but we didn't added tag yet for release to deploy it on wp.org)Possible Drawbacks
Not any
Verification Process
This can be verified with the successful deployment of readme.txt after the next release.
Checklist:
Changelog Entry
Fixed - "Plugin asset/readme update" GH action failure.
Credits
Props @iamdharmesh