Depending on how MediaWiki has been installed, upgrading involves either doing a git checkout of the new branch (or git pull if one is running master) for MediaWiki core, extensions and skins, then running Composer for everything; or fetching MediaWiki from releases.wikimedia.org and the rest from ExtensionDistributor, and replacing the files. It would be nice if we could provide a tool that does that.
See also: