@@ -63,15 +63,14 @@ variables:
6363 DOTNET_GENERATE_ASPNET_CERTIFICATE : false
6464 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
6565 DOTNET_CLI_TELEMETRY_OPTOUT : true
66+ npm_config_cache : $(Pipeline.Workspace)/.npm_client
67+ NODE_OPTIONS : --max_old_space_size=16384
6668
6769stages :
6870 # ##############################################
6971 # # Build
7072 # ##############################################
7173 - stage : Build
72- variables :
73- npm_config_cache : $(Pipeline.Workspace)/.npm_client
74- NODE_OPTIONS : --max_old_space_size=16384
7574 jobs :
7675 - job : A
7776 displayName : Build Umbraco CMS
@@ -80,18 +79,11 @@ stages:
8079 steps :
8180 - checkout : self
8281 submodules : true
83- - task : NodeTool@0
84- displayName : Use Node.js $(nodeVersion)
85- retryCountOnTaskFailure : 3
82+ - task : UseDotNet@2
83+ displayName : Use .NET SDK from global.json
8684 inputs :
87- versionSpec : $(nodeVersion)
88- - script : npm ci --no-fund --no-audit --prefer-offline
89- displayName : Run npm ci (Bellissima)
90- workingDirectory : src/Umbraco.Web.UI.Client
91- - script : npm run generate:api-local
92- displayName : Generate API models (Bellissima)
93- workingDirectory : src/Umbraco.Web.UI.Client
94- enabled : false
85+ useGlobalJson : true
86+ - template : templates/backoffice-install.yml
9587 - script : npm run build:for:cms
9688 displayName : Run build (Bellissima)
9789 workingDirectory : src/Umbraco.Web.UI.Client
@@ -101,10 +93,6 @@ stages:
10193 - script : npm run build
10294 displayName : Run npm build (Login)
10395 workingDirectory : src/Umbraco.Web.UI.Login
104- - task : UseDotNet@2
105- displayName : Use .NET SDK from global.json
106- inputs :
107- useGlobalJson : true
10896 - task : DotNetCoreCLI@2
10997 displayName : Run dotnet restore
11098 inputs :
@@ -127,18 +115,25 @@ stages:
127115 inputs :
128116 targetPath : $(Build.SourcesDirectory)
129117 artifactName : build_output
118+
119+ - job : B
120+ displayName : Build Bellissima Package
121+ pool :
122+ vmImage : ' ubuntu-latest'
123+ steps :
124+ - checkout : self
125+ submodules : true
126+ - template : templates/backoffice-install.yml
127+ - script : npm run build:for:npm
128+ displayName : Run build:for:npm
129+ workingDirectory : src/Umbraco.Web.UI.Client
130130 - bash : |
131- echo "##[command]Running npm version"
132- echo "##[debug]Version: $PACKAGE_VERSION"
133131 echo "##[command]Running npm pack"
134132 echo "##[debug]Output directory: $(Build.ArtifactStagingDirectory)"
135- npm version $PACKAGE_VERSION --allow-same-version --no-git-tag-version
136133 mkdir $(Build.ArtifactStagingDirectory)/npm
137134 npm pack --pack-destination $(Build.ArtifactStagingDirectory)/npm
138135 mv .npmrc $(Build.ArtifactStagingDirectory)/npm/
139- displayName: Prepare Bellissima npm package
140- env:
141- PACKAGE_VERSION: $(build.NBGV_NpmPackageVersion)
136+ displayName: Run npm pack
142137 workingDirectory: src/Umbraco.Web.UI.Client
143138 - task : PublishPipelineArtifact@1
144139 displayName : Publish Bellissima npm artifact
@@ -208,28 +203,11 @@ stages:
208203 pool :
209204 vmImage : ' ubuntu-latest'
210205 variables :
211- npm_config_cache : $(Pipeline.Workspace)/.npm_client
212- NODE_OPTIONS : --max_old_space_size=16384
213206 BASE_PATH : /v$(umbracoMajorVersion)/ui
214207 steps :
215208 - checkout : self
216209 submodules : true
217- - task : NodeTool@0
218- displayName : Use Node.js $(nodeVersion)
219- retryCountOnTaskFailure : 3
220- inputs :
221- versionSpec : $(nodeVersion)
222- - task : Cache@2
223- displayName : Cache node_modules
224- inputs :
225- key : ' "npm_client" | "$(Agent.OS)"| $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/package-lock.json'
226- restoreKeys : |
227- "npm_client" | "$(Agent.OS)"
228- "npm_client"
229- path : $(npm_config_cache)
230- - script : npm ci --no-fund --no-audit --prefer-offline
231- workingDirectory : src/Umbraco.Web.UI.Client
232- displayName : Run npm ci
210+ - template : templates/backoffice-install.yml
233211 - script : npm run storybook:build
234212 displayName : Build Storybook
235213 env :
@@ -528,7 +506,7 @@ stages:
528506 - ${{ if eq(parameters.isNightly, true) }} :
529507 pwsh : npm run test --ignore-certificate-errors
530508 ${{ else }} :
531- pwsh : npm run smokeTest --ignore-certificate-errors
509+ pwsh : npm run smokeTest --ignore-certificate-errors
532510 displayName : Run Playwright tests
533511 continueOnError : true
534512 workingDirectory : tests/Umbraco.Tests.AcceptanceTest
0 commit comments