Enforce no snapshots only if release

finish #2912
Release version 1.37

finish #2913