Ensure a correct sequence of operations to generate the RELEASES file