build/azure-pipelines/common/publish-webview.ts/main
function main(): void {
	const commit = process.env['BUILD_SOURCEVERSION'];

	if (!commit) {
		console.warn('Skipping publish due to missing BUILD_SOURCEVERSION');
		return;
	}

	const opts = minimist(process.argv.slice(2));
	const [directory] = opts._;

	const files = fileNames.map(fileName => join(directory, fileName));

	publish(commit, files).catch(err => {
		console.error(err);
		process.exit(1);
	});
}