From c4f55aa749ae7e4da34db28ec483f98dcd699614 Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Wed, 4 May 2022 15:26:55 +0200 Subject: [PATCH] [Ubuntu] Add node toolcache to 22.04 (#5480) --- .../SoftwareReport/SoftwareReport.CachedTools.psm1 | 6 ++---- images/linux/toolsets/toolset-2204.json | 10 ++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.CachedTools.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.CachedTools.psm1 index 1a5a95ea0..c842508ba 100755 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.CachedTools.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.CachedTools.psm1 @@ -47,10 +47,8 @@ function Build-CachedToolsSection { $output += New-MDHeader "Go" -Level 4 $output += New-MDList -Lines (Get-ToolcacheGoVersions) -Style Unordered - if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) { - $output += New-MDHeader "Node.js" -Level 4 - $output += New-MDList -Lines (Get-ToolcacheNodeVersions) -Style Unordered - } + $output += New-MDHeader "Node.js" -Level 4 + $output += New-MDList -Lines (Get-ToolcacheNodeVersions) -Style Unordered $output += New-MDHeader "PyPy" -Level 4 $output += New-MDList -Lines (Get-ToolcachePyPyVersions) -Style Unordered diff --git a/images/linux/toolsets/toolset-2204.json b/images/linux/toolsets/toolset-2204.json index 103d1d088..3caeceddd 100644 --- a/images/linux/toolsets/toolset-2204.json +++ b/images/linux/toolsets/toolset-2204.json @@ -23,6 +23,16 @@ "3.9" ] }, + { + "name": "node", + "url" : "https://raw.githubusercontent.com/actions/node-versions/main/versions-manifest.json", + "platform" : "linux", + "arch": "x64", + "versions": [ + "14.*", + "16.*" + ] + }, { "name": "go", "url" : "https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json",