Regarding your issue with the infinite loading of the publish tab, you can try the following methods:
1: You can run Visual Studio in safe mode using the command devenv /safemode and try again.
2: Check whether Live Share has been installed in the VS installer:
Here are some links to similar problems you can refer to: link1, link2.