forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.hotfix.yml
44 lines (33 loc) · 1.27 KB
/
azure-pipelines.hotfix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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