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
|
|
|
|
2020-09-24 20:28:39 +03:00
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
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: |
|
2020-10-07 06:01:39 +03:00
|
|
|
npx midgard-yarn install
|
2019-10-31 09:13:24 +03:00
|
|
|
displayName: yarn
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
npm version $(targetNpmVersion)
|
2020-10-01 09:04:46 +03:00
|
|
|
workingDirectory: 'packages/react'
|
|
|
|
displayName: 'Manually set package version'
|
2019-10-31 09:13:24 +03:00
|
|
|
|
|
|
|
- script: |
|
2020-10-01 09:04:46 +03:00
|
|
|
yarn buildto @fluentui/react --production
|
|
|
|
displayName: yarn build to FUIR (Create production build)
|
2019-10-31 09:13:24 +03:00
|
|
|
|
2020-10-01 09:04:46 +03:00
|
|
|
- script: yarn workspace @fluentui/react bundle --production
|
|
|
|
displayName: yarn bundle FUIR
|
2020-01-08 01:29:43 +03:00
|
|
|
|
2019-10-31 09:13:24 +03:00
|
|
|
- script: |
|
|
|
|
npm pack
|
|
|
|
displayName: 'Create tarball'
|
2020-10-01 09:04:46 +03:00
|
|
|
workingDirectory: 'packages/react'
|
2019-10-31 09:13:24 +03:00
|
|
|
|
2020-10-21 06:40:04 +03:00
|
|
|
- script: |
|
|
|
|
npm publish packages/react/react-$(targetNpmVersion).tgz --tag hf7 --//registry.npmjs.org/:_authToken=$(npmToken)
|
|
|
|
displayName: Publish new version
|
2020-09-24 20:28:39 +03:00
|
|
|
|
|
|
|
- template: .devops/templates/cleanup.yml
|
|
|
|
parameters:
|
|
|
|
checkForChangedFiles: false
|