forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.hotfix.yml
55 lines (40 loc) · 1.42 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
45
46
47
48
49
50
51
52
53
54
55
pr: none
trigger: none
pool: '1ES-Host-Ubuntu'
workspace:
clean: all
name: '$(targetNpmVersion) ($(Rev:r))'
variables:
- template: .devops/templates/variables.yml
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'
- task: Bash@3
inputs:
filePath: yarn-ci.sh
displayName: yarn
- script: |
npm version $(targetNpmVersion)
workingDirectory: 'packages/react'
displayName: 'Manually set package version'
- script: |
yarn buildto @fluentui/react --production
displayName: yarn build to FUIR (Create production build)
- script: yarn workspace @fluentui/react bundle --production
displayName: yarn bundle FUIR
- script: |
npm pack
displayName: 'Create tarball'
workingDirectory: 'packages/react'
- script: |
npm publish packages/react/react-$(targetNpmVersion).tgz --tag hf8 --//registry.npmjs.org/:_authToken=$(npmToken)
displayName: Publish new version
- template: .devops/templates/cleanup.yml
parameters:
checkForModifiedFiles: false