update PR script
This commit is contained in:
Родитель
bcc1d93a59
Коммит
cde0fa5f42
|
@ -26,8 +26,30 @@ steps:
|
|||
npx @microsoft/rush test
|
||||
rc=$?; if [ $rc -ne 0 ]; then exit $rc ; fi
|
||||
|
||||
# set the actual package versions
|
||||
npx @microsoft/rush set-versions
|
||||
rc=$?; if [ $rc -ne 0 ]; then exit $rc ; fi
|
||||
|
||||
npx @microsoft/rush publish --publish --pack --include-all --tag latest
|
||||
rc=$?; if [ $rc -ne 0 ]; then exit $rc ; fi
|
||||
|
||||
v=`node -e "console.log(require('./package.json').version)"`
|
||||
echo "##vso[task.setvariable variable=artname]v$v"
|
||||
|
||||
displayName: 'Rush install, build and test'
|
||||
|
||||
- task: PublishPipelineArtifact@1
|
||||
inputs:
|
||||
targetPath: '$(Pipeline.Workspace)/common/temp/artifacts/packages'
|
||||
artifact: '$(artname)'
|
||||
publishLocation: 'pipeline'
|
||||
|
||||
- task: GitHubComment@0
|
||||
inputs:
|
||||
gitHubConnection: 'Azure'
|
||||
repositoryName: '$(Build.Repository.Name)'
|
||||
comment: 'PR pkg created: $(artname)'
|
||||
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: '3.x'
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
"@azure-tools/codegen": "~2.4.0",
|
||||
"@azure-tools/codegen-csharp": "~3.0.0",
|
||||
"@azure-tools/autorest-extension-base": "~3.1.0",
|
||||
"@azure-tools/codemodel": "~3.6.0",
|
||||
"@azure-tools/codemodel": "~3.7.0",
|
||||
"@azure-tools/tasks": "~3.0.0",
|
||||
"@azure-tools/openapi": "~3.0.0",
|
||||
"@azure-tools/datastore": "~4.1.0",
|
||||
|
@ -69,7 +69,7 @@
|
|||
"@azure-tools/codegen": "~2.4.0",
|
||||
"@azure-tools/codegen-csharp": "~3.0.0",
|
||||
"@azure-tools/autorest-extension-base": "~3.1.0",
|
||||
"@azure-tools/codemodel": "~3.6.0",
|
||||
"@azure-tools/codemodel": "~3.7.0",
|
||||
"@azure-tools/tasks": "~3.0.0",
|
||||
"@azure-tools/openapi": "~3.0.0",
|
||||
"@azure-tools/datastore": "~4.1.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче