Please see these questions and the answers:
it appears both topics talk about changing a variable N8N_RELEASE_TYPE, which I found i a couple of places in the repository, for instance:
N8N_RELEASE_TYPE