Just curious, what is your reasoning for wanting to automate this, packages are one of the few things that should be managed manually. The risk for breaking changes is pretty high, even in a well-tested application.
The problem is many developers do not understand the purpose or meaning of semantic versioning and I have personally seen breaking changes come out with patch and even build releases, developers rewriting entire API's and publishing as a patch release, and this was not even on pre-V1 releases.
One package, I recall 2.3.3 was working perfect and 2.3.3+1 had a new API. lol.
While in theory this is a good idea, not sure it's something one ever wants to put into practice back in the real world.