fluentui/azure-pipelines.hotfix.yml

45 строки
1.3 KiB
YAML
Исходник Обычный вид История

pr: none
trigger: none
pool: 'Self Host Ubuntu'
steps:
- template: .devops/templates/tools.yml
- 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: yarn workspace office-ui-fabric-react bundle --production
displayName: yarn bundle OUFR
- 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