refactor(scripts): guard beta deploys against same-hour build number (#13917)