FluidFramework/tools/pipelines/build-api-markdown-document...

97 строки
3.1 KiB
YAML

# Copyright (c) Microsoft Corporation and contributors. All rights reserved.
# Licensed under the MIT License.
# build-api-markdown-documenter pipeline
name: $(Build.BuildId)
parameters:
- 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
trigger:
branches:
include:
- main
- next
- lts
paths:
include:
- .prettierignore
- common/build/build-common # Required due to references from config files
- common/build/eslint-config-fluid # Required since the package takes a `file:` dependency on this package
- tools/api-markdown-documenter
- tools/pipelines/build-api-markdown-documenter.yml
- tools/pipelines/templates/build-npm-package.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-publish-npm-package.yml
- tools/pipelines/templates/include-publish-npm-package-deployment.yml
- tools/pipelines/templates/include-publish-npm-package-steps.yml
- tools/pipelines/templates/include-use-node-version.yml
- tools/pipelines/templates/include-process-test-results.yml
- tools/pipelines/templates/upload-dev-manifest.yml
- scripts/*
pr:
branches:
include:
- main
- next
- lts
- release/*
paths:
include:
- .prettierignore
- common/build/build-common # Required due to references from config files
- common/build/eslint-config-fluid # Required since the package takes a `file:` dependency on this package
- tools/api-markdown-documenter
- tools/pipelines/build-api-markdown-documenter.yml
- tools/pipelines/templates/build-npm-package.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-process-test-results.yml
- tools/pipelines/templates/upload-dev-manifest.yml
- scripts/*
variables:
- template: /tools/pipelines/templates/include-vars.yml@self
parameters:
publishOverride: '${{ parameters.publishOverride }}'
releaseBuildOverride: '${{ parameters.releaseBuildOverride }}'
buildNumberInPatch: ''
extends:
template: /tools/pipelines/templates/build-npm-package.yml@self
parameters:
publish: ${{ variables.publish }}
publishOverride: ${{ parameters.publishOverride }}
releaseBuildOverride: ${{ parameters.releaseBuildOverride }}
buildDirectory: tools/api-markdown-documenter
packageManagerInstallCommand: 'pnpm i --frozen-lockfile'
packageManager: pnpm
testCoverage: ${{ variables.testCoverage }}
tagName: api-markdown-documenter
taskBuild: build
taskBuildDocs: true
taskLint: true
taskTest:
- test