-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[port 2.0]: Fix upload release report step (#22167)
Cherry-pick: #21887 #21969 #22125 [Test Run](https://dev.azure.com/fluidframework/internal/_build/results?buildId=286067&view=results)
- Loading branch information
1 parent
f0af214
commit 8b98697
Showing
14 changed files
with
285 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Copyright (c) Microsoft Corporation and contributors. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
# include-install-build-tools | ||
# | ||
# This template can be included in pipelines to install the Fluid build-tools locally so flub can be used in the | ||
# pipeline. | ||
|
||
parameters: | ||
- name: buildDirectory | ||
type: string | ||
|
||
- name: buildToolsVersionToInstall | ||
type: string | ||
default: repo | ||
|
||
# The path to the pnpm store. | ||
- name: pnpmStorePath | ||
type: string | ||
default: $(Pipeline.Workspace)/.pnpm-store | ||
|
||
steps: | ||
|
||
# These steps should ONLY run if we're using the repo version of the build tools. These steps are mutually exclusive | ||
# with the next group of steps. | ||
- ${{ if eq(parameters.buildToolsVersionToInstall, 'repo') }}: | ||
- template: include-install-pnpm.yml | ||
parameters: | ||
buildDirectory: $(Build.SourcesDirectory)/build-tools | ||
pnpmStorePath: ${{ parameters.pnpmStorePath }} | ||
enableCache: false | ||
|
||
- task: Bash@3 | ||
name: InstallBuildTools | ||
displayName: Install Fluid Build Tools (from repo) | ||
inputs: | ||
targetType: 'inline' | ||
workingDirectory: $(Build.SourcesDirectory)/build-tools | ||
script: | | ||
pnpm i --frozen-lockfile | ||
pnpm build:compile | ||
cd packages/build-cli | ||
# Use npm link instead of pnpm link because it handles bins better | ||
npm link | ||
echo "which flub: $(which flub)" | ||
# These steps install a version of build-tools from the npm registry. As noted above, these steps are mutually exclusive | ||
# with the previous group of steps. | ||
- ${{ if ne(parameters.buildToolsVersionToInstall, 'repo') }}: | ||
- task: Bash@3 | ||
name: InstallBuildTools | ||
displayName: Install Fluid Build Tools (from npm) | ||
inputs: | ||
targetType: 'inline' | ||
workingDirectory: ${{ parameters.buildDirectory }} | ||
script: | | ||
echo "${{ parameters.buildToolsVersionToInstall }}" | ||
npm install --global "@fluid-tools/build-cli@${{ parameters.buildToolsVersionToInstall }}" | ||
- task: Bash@3 | ||
name: BuildToolsInstallCheck | ||
displayName: Check Build Tools Installation | ||
inputs: | ||
targetType: 'inline' | ||
workingDirectory: ${{ parameters.buildDirectory }} | ||
script: | | ||
# Output the help and full command list for debugging purposes | ||
echo "which flub: $(which flub)" | ||
flub --help | ||
flub commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.