This is a very common question that has been answered many times over. A little search in the tutorials section would lead you to:
https://www.scirra.com/tutorials/74/pub ... uct-2-game
As for the license, you need either a personal or business license if you intend to market your game. The business license is required after you (or your company) have earned $5000.00 or more. Following the link below to see a comparison of the licenses and, most importantly, read the license agreement for the version you use. You need to be familiar with it.