We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cda8e7 commit ad476e5Copy full SHA for ad476e5
scripts/publish.py
@@ -37,16 +37,17 @@ def main() -> None:
37
if not dist_path.exists():
38
raise FileNotFoundError(f"dist folder '{dist_path}' not exists")
39
40
- current_version = get_version()
+ version = get_version()
41
42
- vsix_path = Path(dist_path, f"robotcode-{current_version}.vsix")
+ vsix_path = Path(dist_path, f"robotcode-{version}.vsix")
43
44
- run(
45
- "npx vsce publish",
46
- f"npx vsce publish -i {vsix_path}",
47
- shell=True,
48
- timeout=600,
49
- )
+ if not version.prerelease:
+ run(
+ "npx vsce publish",
+ f"npx vsce publish -i {vsix_path}",
+ shell=True,
+ timeout=600,
50
+ )
51
run(
52
"npx ovsx publish",
53
f"npx ovsx publish {vsix_path}",
0 commit comments