wordpress-mobile / release-toolkit-gutenberg-mobile

Automation Scripts for Releasing Gutenberg-Mobile Updates to the WordPress Mobile Apps.
Mozilla Public License 2.0
5 stars 2 forks source link

CLI: Update version management #204

Closed jhnstn closed 10 months ago

jhnstn commented 10 months ago

This adds a semver package to handle the version management. This is a refactor to lay the foundation for #153 where we will need to validate patch versions

Note: I looked into the go semver package but it surprisingly does not handle patches very well. But in the "go" way I just wrote some functions to handle versions the way we need to.

Since most of the pkg/utils package was mostly for versioning, I also moved the rest of that package into new or exiting packages: