Update CI versioning (#242)
This commit is contained in:
Родитель
a161f88f72
Коммит
b8fcd8b973
|
@ -7,8 +7,8 @@
|
|||
variables:
|
||||
version: '1'
|
||||
|
||||
# Use build number format, i.e. 2105.1.0
|
||||
name: $(date:yyMM).$(rev:r).0
|
||||
# Use build number format, i.e. 2021.5.10
|
||||
name: $(Year:yyyy).$(Month).$(rev:r)
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
|
|
|
@ -6,7 +6,7 @@ This extension is available in two release channels for Visual Studio Code from
|
|||
- [Preview][ext-preview] - More frequent releases but more likely to contain bugs.
|
||||
- _Preview_ is where updates are available before they released to _Stable_.
|
||||
- This channel includes changes listed in the _Unreleased_ heading.
|
||||
- Versioning for _Preview_ follows an `yyyy.MM.rrrr` that increments for each release.
|
||||
- Versioning for _Preview_ follows an `year.month.revision` that increments for each release.
|
||||
- [Stable][ext-stable] - Less frequent releases, with more user testing, experimental features are disabled.
|
||||
- Uses [semantic versioning](http://semver.org/) to declare changes.
|
||||
Continue reading to see the changes included in the latest version.
|
||||
|
|
|
@ -26,9 +26,12 @@ param (
|
|||
[String]$AssertStyle = 'AzurePipelines'
|
||||
)
|
||||
|
||||
$commitId = git log --format="%H" -n 1;
|
||||
|
||||
Write-Host -Object "[Pipeline] -- PWD: $PWD" -ForegroundColor Green;
|
||||
Write-Host -Object "[Pipeline] -- OutputPath: $OutputPath" -ForegroundColor Green;
|
||||
Write-Host -Object "[Pipeline] -- BuildNumber: $($Env:BUILD_BUILDNUMBER)" -ForegroundColor Green;
|
||||
Write-Host -Object "[Pipeline] -- CommitId: $($commitId)" -ForegroundColor Green;
|
||||
Write-Host -Object "[Pipeline] -- SourceBranch: $($Env:BUILD_SOURCEBRANCH)" -ForegroundColor Green;
|
||||
Write-Host -Object "[Pipeline] -- SourceBranchName: $($Env:BUILD_SOURCEBRANCHNAME)" -ForegroundColor Green;
|
||||
|
||||
|
@ -195,13 +198,7 @@ task PackageRestore {
|
|||
|
||||
task ReleaseExtension {
|
||||
exec { & npm install vsce --no-save }
|
||||
|
||||
if ($Channel -eq 'preview') {
|
||||
exec { & npm run publish -- patch --pat $ApiKey }
|
||||
}
|
||||
if ($Channel -eq 'stable') {
|
||||
exec { & npm run publish -- --packagePath $packagePath --pat $ApiKey }
|
||||
}
|
||||
exec { & npm run publish -- --packagePath $packagePath --pat $ApiKey }
|
||||
}
|
||||
|
||||
# Synopsis: Add shipit build tag
|
||||
|
|
Загрузка…
Ссылка в новой задаче