50 строки
1.3 KiB
YAML
50 строки
1.3 KiB
YAML
pr: none
|
|
|
|
trigger: none
|
|
|
|
pool: 'Self Host Ubuntu'
|
|
|
|
workspace:
|
|
clean: all
|
|
|
|
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: |
|
|
npx midgard-yarn install
|
|
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 hf7 --//registry.npmjs.org/:_authToken=$(npmToken)
|
|
displayName: Publish new version
|
|
|
|
- template: .devops/templates/cleanup.yml
|
|
parameters:
|
|
checkForChangedFiles: false
|