Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prereleases #343

Closed
lukaszsamson opened this issue Jun 17, 2023 · 0 comments
Closed

Prereleases #343

lukaszsamson opened this issue Jun 17, 2023 · 0 comments

Comments

@lukaszsamson
Copy link
Collaborator

lukaszsamson commented Jun 17, 2023

The action HaaLeo/publish-vscode-extension@v1 supports preRelease flag but marketplace won't accept the version.

Error: Error: The VS Marketplace doesn't support prerelease versions: '0.15.0-rc.3'

microsoft/vscode-vsce#148
microsoft/vscode#15756
microsoft/vsmarketplace#310
microsoft/vsmarketplace#50

This blog post suggests that the solution is publishing prereleases to different channels https://runme.dev/blog/the-github-action-you-need-to-publish-vscode-extensions

We only support major.minor.patch for extension versions and semver pre-release tags are not supported. Thus, if you publish major.minor.patch-tag release to the Marketplace, it will be treated as major.minor.patch and the tag will be ignored. Versions must be different between pre-release and regular releases. That is, if 1.2.3 is uploaded as a pre-release, the next regular release must be uploaded with a distinct version, such as 1.2.4. Full semver support will arrive in the future.

VS Code will auto update extensions to the highest version available, so even if a user opted into a pre-release version and there is an extension release with a higher version, that user will be updated to the released version. Because of this we recommend that extensions use major.EVEN_NUMBER.patch for release versions and major.ODD_NUMBER.patch for pre-release versions. For example: 0.2.* for release and 0.3.* for pre-release.

https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions

@lukaszsamson lukaszsamson closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant