Update yaml file for Azure Pipelines

This commit is contained in:
timenick 2020-02-11 16:25:17 +08:00
Родитель a3373d70a3
Коммит 6ed125b4ed
1 изменённых файлов: 7 добавлений и 9 удалений

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

@ -43,15 +43,6 @@ jobs:
command: 'install'
workingDir: 'libraries/typescript/Microsoft.Bot.Builder.Adapters.WeChat'
- task: Bash@3
displayName: 'Replace version number in package.json file'
inputs:
targetType: 'inline'
script: |
set -o xtrace
sed -i '' 's/${Version}/$(_version)/g' package.json
workingDirectory: 'libraries/typescript/Microsoft.Bot.Builder.Adapters.WeChat'
- task: Npm@1
displayName: 'npm run build'
inputs:
@ -66,6 +57,13 @@ jobs:
workingDir: 'libraries/typescript/Microsoft.Bot.Builder.Adapters.WeChat'
customCommand: 'run test'
- task: Npm@1
displayName: 'Replace version number in package.json file'
inputs:
command: 'custom'
workingDir: 'libraries/typescript/Microsoft.Bot.Builder.Adapters.WeChat'
customCommand: 'version --allow-same-version $(_version)'
- task: Npm@1
displayName: 'npm pack botframework-wechat'
inputs: