First, back up your website and track performance with Google Analytics and Google Search Console. Then, move your website data, including SEO data.
If you are migrating to a new domain, ensure that you set up 301 redirects. Finally, use the Change of Address tool in Google Search Console to notify Google about the new URL.