2019-10-31 09:13:24 +03:00
|
|
|
pr: none
|
|
|
|
|
|
|
|
trigger: none
|
|
|
|
|
2020-09-03 21:25:25 +03:00
|
|
|
pool: 'Self Host Ubuntu'
|
2019-10-31 09:13:24 +03:00
|
|
|
|
|
|
|
steps:
|
2020-09-03 21:25:25 +03:00
|
|
|
- template: .devops/templates/tools.yml
|
2019-10-31 09:13:24 +03:00
|
|
|
|
|
|
|
- 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)
|
|
|
|
|
2020-01-08 01:29:43 +03:00
|
|
|
- script: yarn workspace office-ui-fabric-react bundle --production
|
|
|
|
displayName: yarn bundle OUFR
|
|
|
|
|
2019-10-31 09:13:24 +03:00
|
|
|
- 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
|