Adds a hotfix pipeline definition (#10996)

* adding a hotfix pipeline definition

* scripts -> script

* workingDirectory

* adding a pool spec

* mind the quotes

* only build the packages that are needed

* got rid of a windows only task

* skip generate version files because it does the wrong thing
This commit is contained in:
Kenneth Chau 2019-10-30 23:13:24 -07:00 коммит произвёл GitHub
Родитель 24b07f9fde
Коммит 5f48c280f0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 45 добавлений и 0 удалений

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

@ -0,0 +1,45 @@
pr: none
trigger: none
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: NodeTool@0
displayName: 'Use Node 10.x'
inputs:
versionSpec: 10.x
- script: |
node -e "if('$(targetNpmVersion)' === '') throw new Error('targetNpmVersion is not specified');"
displayName: 'Checking for targetNpmVersion variable'
- script: |
npm install semver
node -e "let semver = require('semver');if(semver.valid('$(targetNpmVersion)') === null){ throw new Error('Invalid version specified'); }"
displayName: 'Check targetNpmVersion is valid semver'
- script: |
yarn
displayName: yarn
- script: |
npm version $(targetNpmVersion)
workingDirectory: 'packages/office-ui-fabric-react'
displayName: 'Manually set fabric version'
- script: |
yarn buildto office-ui-fabric-react --production
displayName: yarn build to OUFR (Create production build)
- script: |
npm pack
displayName: 'Create tarball'
workingDirectory: 'packages/office-ui-fabric-react'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: oufr'
inputs:
PathtoPublish: 'packages/office-ui-fabric-react/office-ui-fabric-react-$(targetNpmVersion).tgz'
ArtifactName: oufr