You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fe327a6
Browse filesBrowse the repository at this point in the historyBrowse files
Sahil Lagwal (MAQ LLC)
committed
Merged PR 662506: YAML pipeline for powerbi-javascript NPM release
### PR Classification
This PR involves the migration of the powerbi-javascript NPM release process from a classical pipeline to a YAML-based pipeline.
### PR Summary
This pull request introduces a YAML pipeline for the release of the `powerbi-javascript` NPM package.
- Added `/.pipelines/powerbi-javascript-npm-release.yml` to define the stages and jobs for internal and external NPM publishing, approval processes, and marking the latest version.
This PR introduces a new pipeline for the powerbi-javascript. The pipeline is designed to:
- Publish the NPM package internally.
- Manually trigger and obtain approval to release the package to the external feed.
- Release the package externally upon approval, using the esrpRelease task.
- Manually trigger and obtain approval to mark the external release as the latest version.
- Mark the released package as the latest version after verifying external release success and approval.
Test run with verbose logging: https://dev.azure.com/powerbi/Embedded/_build/results?buildId=12736900&view=results
### Pipeline stage execution snapshot

Related work items: #1516697
WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest'# Docker image which is used to build the project https://aka.ms/obpipelines/containers
enabled: true # onebranch publish all sdl results to TSA. If TSA is disabled all SDL tools will forced into 'break' build mode.
38
+
cg:
39
+
failOnAlert: false
40
+
publishLogs:
41
+
enabled: false
42
+
featureFlags:
43
+
WindowsHostVersion: 1ESWindows2022
44
+
45
+
stages:
46
+
- stage: Release_Internal
47
+
displayName: Release NPM internal
48
+
49
+
jobs:
50
+
- job: PublishToNPMInternal
51
+
displayName: Publish to NPM Internal Feed
52
+
pool:
53
+
type: windows
54
+
55
+
variables:
56
+
ob_outputDirectory: '$(OUTPUTROOT)'# this directory is uploaded to pipeline artifacts, reddog and cloudvault. More info at https://aka.ms/obpipelines/artifacts
displayName: Approval to publish the powerbi-javascript package to external
80
+
pool:
81
+
type: release
82
+
83
+
steps:
84
+
- download: PowerbiJavascriptOfficial
85
+
86
+
- stage: Release_External
87
+
displayName: Release NPM external
88
+
dependsOn:
89
+
- Prod_ApprovalToExternalPublish
90
+
condition: succeeded()
91
+
92
+
jobs:
93
+
- job: PublishToNPMExternal
94
+
displayName: Publish to NPM External
95
+
pool:
96
+
type: windows
97
+
98
+
variables:
99
+
ob_outputDirectory: '$(OUTPUTROOT)'# this directory is uploaded to pipeline artifacts, reddog and cloudvault. More info at https://aka.ms/obpipelines/artifacts
100
+
101
+
steps:
102
+
- task: DownloadPipelineArtifact@2
103
+
displayName: "Download build files from the powerbi-javascript-official pipeline"
displayName: Approval to set the released package as latest
132
+
trigger: manual
133
+
dependsOn: []
134
+
variables:
135
+
ob_release_environment: Production
136
+
ob_release_usedeploymentjob: true
137
+
ob_deploymentjob_environment: PBIEmbed
138
+
139
+
jobs:
140
+
- job: ApprovalToAddLatestTag
141
+
displayName: Approval to add the latest tag
142
+
pool:
143
+
type: release
144
+
145
+
steps:
146
+
- download: PowerbiJavascriptOfficial
147
+
148
+
- stage: MarkPowerbiJavascriptNpmPackageLatest
149
+
displayName: Set as latest
150
+
dependsOn:
151
+
- Release_External
152
+
- Prod_ApprovalToAddLatestTag
153
+
condition: succeeded()
154
+
155
+
jobs:
156
+
- job: AddLatestTag
157
+
displayName: Add the latest tag on the released version
158
+
pool:
159
+
name: Azure Pipelines
160
+
type: windows
161
+
isCustom: true
162
+
vmImage: 'windows-latest'
163
+
164
+
variables:
165
+
ob_outputDirectory: '$(OUTPUTROOT)'# this directory is uploaded to pipeline artifacts, reddog and cloudvault. More info at https://aka.ms/obpipelines/artifacts
166
+
167
+
steps:
168
+
- task: DownloadPipelineArtifact@2
169
+
displayName: "Download build files from the powerbi-javascript-official pipeline"
0 commit comments