V13: Add support for Node.js 20 (#15022)

* update versionSpec to nodejs 20 and avoid specifying minor and patch versions to improve Azure Pipelines stability

* update engines and package lock files

* update helpful displayNames for npm builds

* add retry to counter nodejs.org timeouts

add retryCountOnTaskFailure as suggested on https://developercommunity.visualstudio.com/t/NodeTool0-task-to-install-nodejs-fails/10455454
This commit is contained in:
Jacob Overgaard
2023-10-24 13:59:42 +02:00
committed by GitHub
parent 304a64be5a
commit 922be1c416
7 changed files with 20 additions and 16 deletions

View File

@@ -43,7 +43,7 @@ parameters:
default: ' '
variables:
nodeVersion: 18.16.x
nodeVersion: 20
dotnetVersion: 8.x
dotnetIncludePreviewVersions: true
solution: umbraco.sln
@@ -69,6 +69,7 @@ stages:
steps:
- task: NodeTool@0
displayName: Use Node.js $(nodeVersion)
retryCountOnTaskFailure: 3
inputs:
versionSpec: $(nodeVersion)
- task: Cache@2
@@ -81,22 +82,22 @@ stages:
path: $(npm_config_cache)
- script: npm ci --no-fund --no-audit --prefer-offline
workingDirectory: src/Umbraco.Web.UI.Client
displayName: Run npm ci
displayName: Run npm ci (Backoffice)
- task: gulp@0
displayName: Run gulp build
displayName: Run gulp build (Backoffice)
inputs:
gulpFile: src/Umbraco.Web.UI.Client/gulpfile.js
targets: coreBuild
workingDirectory: src/Umbraco.Web.UI.Client
- task: npm@1
displayName: Run npm ci
displayName: Run npm ci (Login)
inputs:
command: custom
workingDir: src/Umbraco.Web.UI.Login
verbose: false
customCommand: ci
- task: npm@1
displayName: Run npm build
displayName: Run npm build (Login)
inputs:
command: custom
workingDir: src/Umbraco.Web.UI.Login
@@ -190,6 +191,7 @@ stages:
steps:
- task: NodeTool@0
displayName: Use Node.js 10.15.x
retryCountOnTaskFailure: 3
inputs:
versionSpec: 10.15.x # Won't work with higher versions
- script: |
@@ -430,6 +432,7 @@ stages:
path: $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/misc/nupkg
- task: NodeTool@0
displayName: Use Node.js $(nodeVersion)
retryCountOnTaskFailure: 3
inputs:
versionSpec: $(nodeVersion)
- task: Cache@2

View File

@@ -1 +1 @@
18.16
20.8

View File

@@ -80,8 +80,8 @@
"run-sequence": "2.2.1"
},
"engines": {
"node": ">=18.16",
"npm": ">=9.5"
"node": ">=20.8",
"npm": ">=10.1"
}
},
"node_modules/@aashutoshrathi/word-wrap": {

View File

@@ -14,8 +14,8 @@
"lint": "eslint src"
},
"engines": {
"node": ">=18.16",
"npm": ">=9.5"
"node": ">=20.8",
"npm": ">=10.1"
},
"dependencies": {
"@microsoft/signalr": "7.0.12",

View File

@@ -0,0 +1 @@
20.8

View File

@@ -17,8 +17,8 @@
"vite": "^4.4.11"
},
"engines": {
"node": ">=18.16",
"npm": ">=9.5"
"node": ">=20.8",
"npm": ">=10.1"
}
},
"node_modules/@esbuild/android-arm": {

View File

@@ -8,10 +8,10 @@
"watch": "tsc && vite build --watch",
"preview": "vite preview"
},
"engines": {
"node": ">=18.16",
"npm": ">=9.5"
},
"engines": {
"node": ">=20.8",
"npm": ">=10.1"
},
"dependencies": {
"@umbraco-ui/uui": "^1.4.0",
"@umbraco-ui/uui-css": "^1.4.0",