# Copyright (c) Microsoft Corporation and contributors. All rights reserved. # Licensed under the MIT License. # build-protocol-definitions pipeline name: $(Build.BuildId) parameters: - name: installAllPlatforms displayName: Save dependencies for all supported platforms type: boolean default: false - name: releaseBuildOverride displayName: Release Build (default = not released) type: string default: none values: - none - prerelease - release - name: publishOverride displayName: Publish Override (default = based on branch) type: string default: default values: - default - skip - force - name: buildToolsVersionToInstall displayName: Fluid build tools version (default = installs version in repo) type: string default: repo trigger: branches: include: - main - next - lts - release/* paths: include: - .prettierignore - fluidBuild.config.cjs - common/build/build-common - common/lib/protocol-definitions # Protocol-definitions references files from the patches folder at the root of the repo. # Using the whole folder as dependency because when patch files are updated they might get new names. - patches/* - scripts/* - tools/pipelines/build-protocol-definitions.yml - tools/pipelines/templates/build-npm-package.yml - tools/pipelines/templates/include-generate-publish-metadata.yml - tools/pipelines/templates/include-build-lint.yml - tools/pipelines/templates/include-set-package-version.yml - tools/pipelines/templates/include-vars.yml - tools/pipelines/templates/include-install-pnpm.yml - tools/pipelines/templates/include-use-node-version.yml - tools/pipelines/templates/include-policy-check.yml pr: branches: include: - main - next - lts - release/* paths: include: - .prettierignore - common/build/build-common - common/lib/protocol-definitions # Protocol-definitions references files from the patches folder at the root of the repo. # Using the whole folder as dependency because when patch files are updated they might get new names. - patches/* - scripts/* - tools/pipelines/build-protocol-definitions.yml - tools/pipelines/templates/build-npm-package.yml - tools/pipelines/templates/include-generate-publish-metadata.yml - tools/pipelines/templates/include-build-lint.yml - tools/pipelines/templates/include-set-package-version.yml - tools/pipelines/templates/include-vars.yml - tools/pipelines/templates/include-install-pnpm.yml - tools/pipelines/templates/include-use-node-version.yml - tools/pipelines/templates/include-policy-check.yml variables: - template: /tools/pipelines/templates/include-vars.yml@self parameters: publishOverride: '${{ parameters.publishOverride }}' releaseBuildOverride: '${{ parameters.releaseBuildOverride }}' extends: template: /tools/pipelines/templates/build-npm-package.yml@self parameters: installAllPlatforms: ${{ parameters.installAllPlatforms }} publish: ${{ variables.publish }} publishOverride: ${{ parameters.publishOverride }} publishAsPartOfBuild: false releaseBuildOverride: ${{ parameters.releaseBuildOverride }} buildToolsVersionToInstall: ${{ parameters.buildToolsVersionToInstall }} buildDirectory: ${{ variables.FluidFrameworkDirectory }}/common/lib/protocol-definitions tagName: protocol-definitions testCoverage: false taskTest: [] # no tests