Version number format: MAJOR.MINOR.PATH. Version numbering is automatic and uses the branch naming convention. For more details read versioning.md
- preview version has an odd MINOR number
- release version has an even MINOR number
Follow these steps to publish a new preview to the Private feed.
-
Create release branch: Branch name must follow convention
vs-vMAJOR.MINOR.x(e. g.vs-v0.2.x) where MINOR must be even numbergit checkout -b vs-vMAJOR.MINOR.x. NOTE: Although the MINOR number will be even in the branch name the preview version of the extension will have an odd number (MINOR -1) (e. g.vs-v0.1.x) -
Start publication: Go to https://github.com/sourcegraph/cody-vs/actions/workflows/publish.yml and run workflow manually using following parameters:
- Use workflow from: release branch
- Publish type: Preview
-
Monitor Publication: Once the workflow run is complete:
- The new version of the extension will be published to the Private feed.
- A pre-release will be created on GitHub.
-
Visual Studio auto-updating with the latest Preview version: Use preview gallery feed:
- Tools -> Options -> Extensions
- In the
Additional Extension GalleriesselectAddand use https://sourcegraph.github.io/cody-vs/feed.xml asURL
NOTE: All releases are currently published automatically via GitHub Actions as Preview version.
Follow these steps to publish a new release to the Visual Studio Marketplace.
- Coordinate with Marketing: Contact the Marketing team in the Cody Slack channel approximately 2 days before the release to ensure a blog post is prepared.
- Create release branch: Branch name must follow convention
vs-vMAJOR.MINOR.x(e. g.vs-v0.2.x) where MINOR must be even numbergit checkout -b vs-vMAJOR.MINOR.x. Consider that the branch may already exist and be used to publish a preview version. In this case, you don't need to create a new branch just use an existing one. - Update changelog file Add changes to CHANGELOG.md. Commit and push changes to the release branch
- Start publication: Go to https://github.com/sourcegraph/cody-vs/actions/workflows/publish.yml and run workflow manually using following parameters:
- Use workflow from: release branch
- Publish type: Release
- Monitor Publication: Once the workflow run is complete:
- The new version of the extension will be published to the Visual Studio Marketplace.
- A release will be created on GitHub.
A patch release is necessary when a critical bug is discovered in the latest stable release that requires an immediate fix.
To publish a patch release:
- Ensure all the changes for the patch are already committed to the latest release branch.
- Start publication: Go to https://github.com/sourcegraph/cody-vs/actions/workflows/publish.yml and run workflow manually using following parameters:
- Use workflow from: release branch
- Publish type: Release