This is prevents the plugin from publishing a new chrome extension version to a staging extension while maintaining the pre-release functionality on my develop branch.
How
Adds an optional boolean allowPrerelease field to the PluginConfig interface. When allowPrerelease is specified and set to true, the semantic version number is parsed from the given version string instead of using the raw string. For example, if 1.0.0-develop.1 is the given pre-release version, then 1.0.0 will be parsed and used for the chrome web store publishing purposes.
Screenshots
How has this been tested
unit tests were added for the parsePrereleaseVersion function
currently (as of 1/2/24) working on testing this in the context of my separate repository that utilizes the plugin to ensure the changes work e-to-e and resolve my original issue
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] Documentation
[ ] Ready to be merged
[x] My code follows the code style of this project (run npm run ci to be sure).
Pull Request
Related issue
https://github.com/GabeDuarteM/semantic-release-chrome/issues/111 - Allow publishing of pre-release version
Description
A new feature that allows the publishing of pre-release versions is introduced in this PR.
Why
When utilizing the semantic-release package's pre-release functionality, the semantic-release-chrome's chrome web api call throws a version format error.
This is prevents the plugin from publishing a new chrome extension version to a staging extension while maintaining the pre-release functionality on my develop branch.
How
Adds an optional boolean
allowPrerelease
field to thePluginConfig
interface. WhenallowPrerelease
is specified and set to true, the semantic version number is parsed from the given version string instead of using the raw string. For example, if1.0.0-develop.1
is the given pre-release version, then1.0.0
will be parsed and used for the chrome web store publishing purposes.Screenshots
How has this been tested
Type of change
Checklist
npm run ci
to be sure).