This commit is contained in:
Bernie White 2021-05-09 17:04:07 +10:00 коммит произвёл GitHub
Родитель a161f88f72
Коммит b8fcd8b973
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 7 добавлений и 10 удалений

Просмотреть файл

@ -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