From dbe4a43f3900f3a12cacc39391eb8f7743aac2e5 Mon Sep 17 00:00:00 2001 From: Elizabeth Craig Date: Tue, 6 Oct 2020 18:55:07 -0700 Subject: [PATCH] Use midgard-yarn in all pipelines (7.0) (#15391) * Use midgard-yarn in all pipelines * Use Node 12 --- azure-pipelines.bundlesize.yml | 4 +- azure-pipelines.hotfix.yml | 2 +- azure-pipelines.perf-test.yml | 2 +- azure-pipelines.release-fluentui.yml | 56 ---------------------------- azure-pipelines.release.yml | 2 +- 5 files changed, 5 insertions(+), 61 deletions(-) delete mode 100644 azure-pipelines.release-fluentui.yml diff --git a/azure-pipelines.bundlesize.yml b/azure-pipelines.bundlesize.yml index dfb54a8bc43c33..df3ef5ae0b72f6 100644 --- a/azure-pipelines.bundlesize.yml +++ b/azure-pipelines.bundlesize.yml @@ -11,10 +11,10 @@ jobs: steps: - task: NodeTool@0 inputs: - versionSpec: '10.x' + versionSpec: '12.x' displayName: 'Install Node.js' - - script: yarn + - script: npx midgard-yarn install displayName: yarn - script: yarn build --to test-bundles --no-cache --grouped diff --git a/azure-pipelines.hotfix.yml b/azure-pipelines.hotfix.yml index 95da1ec4d324b9..89ca717b09e118 100644 --- a/azure-pipelines.hotfix.yml +++ b/azure-pipelines.hotfix.yml @@ -20,7 +20,7 @@ steps: displayName: 'Check targetNpmVersion is valid semver' - script: | - yarn + npx midgard-yarn install displayName: yarn - script: | diff --git a/azure-pipelines.perf-test.yml b/azure-pipelines.perf-test.yml index 6e12699b5b330e..ddc24194ceb334 100644 --- a/azure-pipelines.perf-test.yml +++ b/azure-pipelines.perf-test.yml @@ -15,7 +15,7 @@ steps: - template: .devops/templates/tools.yml - script: | - yarn + npx midgard-yarn install displayName: yarn # @fluentui/perf-test needs build and bundle steps diff --git a/azure-pipelines.release-fluentui.yml b/azure-pipelines.release-fluentui.yml deleted file mode 100644 index f9d760edf84790..00000000000000 --- a/azure-pipelines.release-fluentui.yml +++ /dev/null @@ -1,56 +0,0 @@ -pr: none -trigger: none - -# Customize build number to include major version -# Example: fluentui_20190626.1 -name: 'fluentui_$(Date:yyyyMMdd)$(Rev:.r)' - -variables: - - group: 'Github and NPM secrets' - -pool: 'Self Host Ubuntu' - -steps: - - task: NodeTool@0 - inputs: - versionSpec: '10.x' - displayName: 'Install Node.js' - - - script: | - git config user.name "Fluent UI Build" - git config user.email "fluentui-internal@service.microsoft.com" - git remote set-url origin https://$(githubUser):$(githubPAT)@github.com/microsoft/fluentui.git - displayName: Authenticate git for pushes - - - script: | - yarn - displayName: yarn - - - script: | - PRODUCTION=true yarn build - displayName: yarn build - - - script: | - NODE_ENV=production yarn build:fluentui:docs - displayName: yarn build:fluentui:docs - - - task: AzureUpload@2 - displayName: Upload docs site - inputs: - SourcePath: 'packages/fluentui/docs/dist' - azureSubscription: 'UI Fabric (private)' - storage: fluentsite - ContainerName: '$web' - BlobPrefix: '' -# No NPM release in CI for now -# - script: | -# yarn test -# displayName: yarn test -# -# - script: | -# yarn lint -# displayName: yarn lint -# -# - script: | -# yarn release:fluentui:$(bumpType) -# displayName: yarn release:fluentui:$(bumpType) diff --git a/azure-pipelines.release.yml b/azure-pipelines.release.yml index 0d700fef800d52..b2007a69037ab7 100644 --- a/azure-pipelines.release.yml +++ b/azure-pipelines.release.yml @@ -32,7 +32,7 @@ steps: displayName: Authenticate git for pushes - script: | - yarn + npx midgard-yarn install displayName: yarn - script: |