fluentui/azure-pipelines.hotfix.yml

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)
2020-10-01 09:04:46 +03:00
workingDirectory: 'packages/react'
displayName: 'Manually set package version'
- script: |
2020-10-01 09:04:46 +03:00
yarn buildto @fluentui/react --production
displayName: yarn build to FUIR (Create production build)
2020-10-01 09:04:46 +03:00
- script: yarn workspace @fluentui/react bundle --production
displayName: yarn bundle FUIR
- script: |
npm pack
displayName: 'Create tarball'
2020-10-01 09:04:46 +03:00
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