Make release process safer : don't rely on publishArtifacts idx in the sequence of release steps