Skip to content

Conversation

@carole-lavillonniere
Copy link
Contributor

@carole-lavillonniere carole-lavillonniere commented Nov 4, 2025

Motivation

This PR automates the publishing process for the LocalStack VS Code extension to both the Visual Studio Marketplace and Open VSX Registry. It introduces an automated workflow that can be triggered manually to publish the extension to both marketplaces, ensuring consistency and reducing manual effort.

The extension is published to both marketplaces by default, but that can be overwritten using the GH CLI with inputs, see example below.

Trigger:

  • Via GitHub UI (Actions tab → Select workflow → Re-run all jobs)
  • Via GitHub CLI: gh workflow run publish.yml -f publish_vscode_marketplace=true -f publish_ovsx=false --ref branch-name

The version is extracted from branch name (strips leading 'v' if present, since it is the convention so far for branch names) and validates it matches package.json version.

Other changes

Added Makefile targets for lint and test to provide a single source of truth for quality checks.

Testing

The workflows were tested by publishing version 1.2.5 with the --pre-release flag. Contrary to what I initially described in DRG-69, VS Code Marketplace pre-releases cannot have version suffixes (like -beta.1). They use the same version format as regular releases. The test pre-releases (version 1.2.5) are now live in both marketplaces but won't auto-update users unless they opted-in. These cannot be unlisted.

✔️ Successfully tested the pre-release extension in VSCode:
image

Next release should be version 1.2.6 to supersede the pre-release versions. Will create the release 1.2.6 with a subsequent PR.

@carole-lavillonniere carole-lavillonniere force-pushed the v1.2.5 branch 3 times, most recently from 4559fdf to 11d834b Compare November 4, 2025 10:45
@carole-lavillonniere carole-lavillonniere changed the title CI workflow to publish extension ci: Automate extension publishing Nov 4, 2025
@carole-lavillonniere carole-lavillonniere changed the title ci: Automate extension publishing ci: Automate extensions publishing Nov 4, 2025
@carole-lavillonniere carole-lavillonniere changed the title ci: Automate extensions publishing chore: Automate extensions publishing Nov 4, 2025
@carole-lavillonniere carole-lavillonniere force-pushed the v1.2.5 branch 4 times, most recently from e891086 to ceb6192 Compare November 4, 2025 12:23
@carole-lavillonniere
Copy link
Contributor Author

towards DRG-69

@carole-lavillonniere carole-lavillonniere marked this pull request as ready for review November 4, 2025 12:30
Copy link
Collaborator

@skyrpex skyrpex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work!

I'd like to suggest merging publish-ovsx and publish-vs-marketplace into a single workflow so both are triggered with one action rather than running them separately, unless there's a specific reason not to do so.

In the future, we might want to automate publishing further, e.g. deducing the next version semantically.

@carole-lavillonniere carole-lavillonniere marked this pull request as draft November 5, 2025 12:33
@carole-lavillonniere carole-lavillonniere force-pushed the v1.2.5 branch 5 times, most recently from 939e857 to 195350e Compare November 5, 2025 12:49
@carole-lavillonniere
Copy link
Contributor Author

carole-lavillonniere commented Nov 5, 2025

Very nice work!

I'd like to suggest merging publish-ovsx and publish-vs-marketplace into a single workflow so both are triggered with one action rather than running them separately, unless there's a specific reason not to do so.

In the future, we might want to automate publishing further, e.g. deducing the next version semantically.

Yes that's better. We now have one workflow that publishes to both marketplaces by default 1d2c4bb
The behavior can be changed by using inputs and the GH CLI gh workflow run publish.yml -f publish_vscode_marketplace=true -f publish_ovsx=false --ref branch-name
Updated the PR description.

Agreed it can be automated further, some points are also mentioned in the ticket https://linear.app/localstack/issue/DRG-69/automate-publishing-to-vs-marketplace-and-open-vsx

Copy link
Collaborator

@skyrpex skyrpex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great 👍🏻

@carole-lavillonniere carole-lavillonniere merged commit 15b6694 into main Nov 5, 2025
3 checks passed
@carole-lavillonniere carole-lavillonniere deleted the v1.2.5 branch November 5, 2025 13:44
carole-lavillonniere added a commit that referenced this pull request Nov 6, 2025
Related to
#70
This version is meant to supersede the pre-release versions (1.2.5) in
the marketplaces.
closes DRG-153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants