Adds environment checks.
Adds protection to only bump in release branches.