if I file for a patent and then publish details of the patent in a scientific journal, before the patent is officially published, does that invalidate the patent - basically because I've put details in the public domain? Is this relevant for the US patent system or any other country patent system?

Thanks