Is there a "correct" way to check if I am running a nightly build of Julia?

Is there an official way to check if I am running a non-release version of Julia? Any footguns to be aware of if I just do occursin("DEV",string(VERSION))?

The reason for this question is that I want to permit certain tests (and doc builds) only if not on a nightly release (or vice versa).