Skip to content

Commit ecd6e05

Browse files
committed
Merge remote-tracking branch 'origin/release/14.1' into v14/dev
2 parents 9efcc4d + 2122af7 commit ecd6e05

File tree

4 files changed

+54
-44
lines changed

4 files changed

+54
-44
lines changed

build/azure-pipelines.yml

Lines changed: 21 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -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

6769
stages:
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
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
steps:
2+
- task: NodeTool@0
3+
displayName: Use Node.js
4+
retryCountOnTaskFailure: 3
5+
inputs:
6+
versionSource: 'fromFile'
7+
versionFilePath: src/Umbraco.Web.UI.Client/.nvmrc
8+
9+
- bash: |
10+
echo "##[command]Install nbgv"
11+
dotnet tool install --tool-path . nbgv
12+
echo "##[command]Running nbgv get-version"
13+
PACKAGE_VERSION=$(nbgv get-version -v NpmPackageVersion)
14+
echo "##[command]Running npm version"
15+
echo "##[debug]Version: $PACKAGE_VERSION"
16+
cd src/Umbraco.Web.UI.Client
17+
npm version $PACKAGE_VERSION --allow-same-version --no-git-tag-version
18+
displayName: Set NPM Version
19+
20+
- task: Cache@2
21+
displayName: Cache node_modules
22+
inputs:
23+
key: '"npm_client" | "$(Agent.OS)"| $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/package-lock.json'
24+
restoreKeys: |
25+
"npm_client" | "$(Agent.OS)"
26+
"npm_client"
27+
path: $(npm_config_cache)
28+
29+
- script: npm ci --no-fund --no-audit --prefer-offline
30+
displayName: Run npm ci (Bellissima)
31+
workingDirectory: src/Umbraco.Web.UI.Client

src/Umbraco.Web.UI.Client

umbraco.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{20CE9C97
140140
ProjectSection(SolutionItems) = preProject
141141
build\azure-pipelines.yml = build\azure-pipelines.yml
142142
build\nightly-build-trigger.yml = build\nightly-build-trigger.yml
143+
build\templates\backoffice-install.yml = build\templates\backoffice-install.yml
143144
EndProjectSection
144145
EndProject
145146
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "csharp-docs", "csharp-docs", "{F2BF84D9-0A14-40AF-A0F3-B9BBBBC16A44}"

0 commit comments

Comments
 (0)