Merged PR 98513: [React Wrapper]: Pipeline build artifacts fix
Changes in this PR: 1. Separated the _build_ and _package_ stages, to allow signing of build artifacts. [Reference](https://onebranch.visualstudio.com/Pipeline/_wiki/wikis/Pipeline.wiki/316/Signing?anchor=signing-packages-examples) 1. Updated build stage to include _dist, License, Readme, package.json_ in the _build_artifacts_ artifact 1. Updated build stage to include source files in the _source_ artifact 1. Added keywords in package.json Published Artifacts: https://powerbi.visualstudio.com/Embedded/_build/results?buildId=2059241&view=artifacts&type=publishedArtifacts Related work items: #397711
This commit is contained in:
Родитель
5009b45727
Коммит
0f99517857
|
@ -13,6 +13,7 @@ artifact_publish_options:
|
|||
publish_to_pipeline_artifacts: true
|
||||
publish_to_cloudvault_artifacts: false
|
||||
|
||||
# Enable signing on all declared artifacts.
|
||||
signing_options:
|
||||
profile: 'external_distribution'
|
||||
|
||||
|
@ -21,7 +22,7 @@ static_analysis_options:
|
|||
files_to_scan:
|
||||
- from: 'src\'
|
||||
include:
|
||||
- '**/*.*'
|
||||
- '**/*'
|
||||
|
||||
policheck_options:
|
||||
files_to_scan:
|
||||
|
@ -61,6 +62,7 @@ restore:
|
|||
arguments: 'restore.ps1'
|
||||
command: '.pipelines\cdpx_run_ps.cmd'
|
||||
|
||||
# Commands to run during the build stage.
|
||||
build:
|
||||
commands:
|
||||
- !!buildcommand
|
||||
|
@ -68,29 +70,37 @@ build:
|
|||
arguments: 'build.ps1'
|
||||
command: '.pipelines\cdpx_run_ps.cmd'
|
||||
artifacts:
|
||||
- from: 'dist'
|
||||
to: 'build_artifacts'
|
||||
- to: 'build_artifacts'
|
||||
include:
|
||||
- '**/*'
|
||||
exclude:
|
||||
- '**/node_modules/**/*.*'
|
||||
- 'dist/**/*'
|
||||
- 'LICENSE.txt'
|
||||
- 'package.json'
|
||||
- 'README.md'
|
||||
- to: 'source'
|
||||
include:
|
||||
- '**/*'
|
||||
exclude:
|
||||
- '**/.pipelines/**/*.*'
|
||||
- '**/.vscode/**/*.*'
|
||||
- '**/test/**/*.*'
|
||||
- '**/demo/**/*.*'
|
||||
- '**/dist/**/*.*'
|
||||
- '**/node_modules/**/*.*'
|
||||
- '**/.pipelines/**/*'
|
||||
- '**/.vscode/**/*'
|
||||
- '**/test/**/*'
|
||||
- '**/demo/**/*'
|
||||
- '**/dist/**/*'
|
||||
- '**/node_modules/**/*'
|
||||
- '**/compiledTests/**/*'
|
||||
|
||||
# All build stage artifacts get signed right after the build stage
|
||||
# because the global signing profile is defined.
|
||||
|
||||
# Commands to run during the packaging stage.
|
||||
package:
|
||||
commands:
|
||||
- !!buildcommand
|
||||
name: 'Package'
|
||||
arguments: 'package.ps1'
|
||||
command: '.pipelines\cdpx_run_ps.cmd'
|
||||
artifacts:
|
||||
- include:
|
||||
- to: 'tgz-package'
|
||||
include:
|
||||
- "**/*.tgz"
|
||||
|
||||
test:
|
||||
|
|
|
@ -17,7 +17,12 @@
|
|||
"demo": "cd demo && npm run demo",
|
||||
"lint": "eslint --fix src/**/*.{ts,tsx}"
|
||||
},
|
||||
"keywords": [],
|
||||
"keywords": [
|
||||
"microsoft",
|
||||
"powerbi",
|
||||
"embedded",
|
||||
"react"
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"powerbi-client": "^2.11.0"
|
||||
|
|
Загрузка…
Ссылка в новой задаче