question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add pre-release support

See original GitHub issue

Description VS Code in release 1.63.0 added support for pre-releases and in the future they will be adding semver style tags. https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_63.md#publishing-pre-release-extensions

It would be a good idea IMO to allow for additional arguments to be passed into vsce, e.g. --pre-release. Of course care needs to be taken with how/when a pre-release build will be triggered. For example, the not so elegant solution that I thought of, is to have a separate .yml with --pre-release set as an argument that runs at every push on master and another .yml that triggers only on a GitHub release.

The important thing is to not allow for a normal release and a pre-release to publish under the exact same version number. There are some tricks that one can employ to ensure that but I would consider this responsibility lying with the developer of the VS Code extension and not this GitHub Action.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
HaaLeocommented, Feb 7, 2022

Hi @cvergne the release you are referring to adds this option only to the api definitions this release does not change any functional behaviour of vsce.

If you package and publish your extension (dryRun: false) with this GitHub action the preRelease option is considered as one expects. However if you first package your extension with dryRun: true, preRelease: false and then in a second step publish the packaged extension with (extensionFile: 'path/To/extension.vsix', preRelease: true) the extension will not be published as pre-release. This is what I mean with

it seems that vsce only considers this option during the packaging step.

I hope this clarifies the behaviour of the preRelease flag.

1reaction
gnikitcommented, Aug 10, 2022

@kingdonb at the time I implemented this vsce had just added Pre-Release support on the VS Code Insiders build and ovsx had no support for Pre-release. Since the original contribution, ovsx has added the --pre-release flag when publishing.

It’s been on my TODO-list to open another PR to implement this, but I’ve haven’t gotten around to it yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prerelease Module Versions - PowerShell - Microsoft Learn
The PowerShellGet module provides support for tagging modules with versions greater than 1.0.0 as a prerelease using semantic versioning.
Read more >
New Feature: Prerelease Versioning Support For GitHub | Next ...
We've just launched support for prerelease versioning in our GitHub app. Add a label with any of the following names to your release...
Read more >
Support for pre-release · Issue #510 · googleapis/release-please
I would like to cut a pre-release Describe the solution you'd like Have ... Support for pre-release #510 ... I'm not sure what...
Read more >
Prerelease Versioning Added to PowerShellGet and ...
With the release of PowerShellGet 1.6.0, PowerShellGet cmdlets and the PowerShell Gallery have added support for prerelease strings for ...
Read more >
Specifying Your Project's Version - Setuptools
Knowing these things will also help you correctly specify what versions of ... Pre-release tags make a version be considered older than the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found