I haven’t gone through that flow yet but the VS Code docs will help you out. See the Publishing extensions help guide if you want more info.

Some other steps are needed first like login and create-publisher.

When you are ready, run this this command:

$ vsce publish
# <publisherID>.myExtension published to VS Code MarketPlace