Add logic to support publishing hotfixes from releases/* branches (#2918)

This commit is contained in:
Andrew Coates 2023-07-06 16:34:47 -07:00 коммит произвёл GitHub
Родитель 1cf1863fd9
Коммит e20ba3b95a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -5,6 +5,7 @@ trigger:
branches:
include:
- main
- releases/*
pr: none
@ -61,7 +62,13 @@ jobs:
- script: |
yarn publish:beachball -- $(SkipNpmPublishArgs) $(SkipGitPushPublishArgs) -b origin/main -n $(npmAuth) --access public -y
displayName: 'Publish NPM Packages'
displayName: 'Publish NPM Packages (for main branch)'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
- script: |
yarn publish:beachball -- $(SkipNpmPublishArgs) $(SkipGitPushPublishArgs) -b origin/main -n $(npmAuth) --access public -y -t v%BUILD_SOURCEBRANCH:refs/heads/releases/=% -b origin/%BUILD_SOURCEBRANCH:refs/heads/=% --prerelease-prefix %BUILD_SOURCEBRANCH:refs/heads/releases/=%
displayName: 'Publish NPM Packages (for other release branches)'
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/main'))
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 📒 Generate Manifest Npm