🏷️ Version your Visual Studio extensions automatically based on date and build number!
This GitHub Action updates your Visual Studio extension to a version based on the current date and CI build number.
You can use the Visual Studio VSIX Versioner GitHub Action by configuring a
YAML-based workflow file, e.g. .github/workflows/deploy.yml.
⚠️ Note: This action requires your extension to utilize the VSIX Synchronizer model for managing the version in thesource.extension.vsixmanifestand thesource.extension.cscode-behind file that is automatically synchronized.Other versioning styles will be supported in the future.
⚠️ Note: This action only works on a Windows-based runner.
| Input | Required | Description |
|---|---|---|
extension-manifest-file |
Yes | Path to your source.extension.vsixmanifest file |
extension-source-file |
Yes | Path to the source file generated from the manifest (using VSIX Synchronizer) |
build-number |
No | Build number to use for versioning (defaults to run_number) |
Version the VSIX before building:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Visual Studio VSIX Versioner
uses: CodingWithCalvin/GHA-VSVsixVersioner@v2
with:
# REQUIRED
extension-manifest-file: './src/MyExtension/source.extension.vsixmanifest'
extension-source-file: './src/MyExtension/source.extension.cs'
# OPTIONAL
build-number: ${{ github.run_number }}MIT License - see LICENSE for details.
Made with ❤️ by Coding With Calvin