mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Cleanup old markdown documenation approach (#979)
This commit is contained in:
committed by
GitHub
parent
8c8f384a61
commit
43e26fa96b
@@ -3,7 +3,7 @@
|
||||
## Desc: Validate nodejs-lts and other common node tools.
|
||||
################################################################################
|
||||
|
||||
if((Get-Command -Name 'node') -and (Get-Command -Name 'npm'))
|
||||
if ((Get-Command -Name 'node') -and (Get-Command -Name 'npm'))
|
||||
{
|
||||
Write-Host "Node $(node --version) on path"
|
||||
Write-Host "Npm $(npm -version) on path"
|
||||
@@ -14,7 +14,7 @@ else
|
||||
exit 1
|
||||
}
|
||||
|
||||
if((Get-Command -Name 'gulp') -and (Get-Command -Name 'grunt') -and (Get-Command -Name 'cordova') -and (Get-Command -Name 'yarn'))
|
||||
if ((Get-Command -Name 'gulp') -and (Get-Command -Name 'grunt') -and (Get-Command -Name 'cordova') -and (Get-Command -Name 'yarn'))
|
||||
{
|
||||
Write-Host "Gulp $(gulp -version) on path"
|
||||
Write-Host "Grunt $(grunt -version) on path"
|
||||
@@ -26,7 +26,7 @@ else
|
||||
exit 1
|
||||
}
|
||||
|
||||
if(Get-Command -Name 'lerna')
|
||||
if (Get-Command -Name 'lerna')
|
||||
{
|
||||
Write-Host "lerna $(lerna --version) on path"
|
||||
}
|
||||
@@ -35,43 +35,3 @@ else
|
||||
Write-Host "lerna is not on path"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
if( $(node --version) -match 'v(?<version>.*)' )
|
||||
{
|
||||
$nodeVersion = $Matches.version
|
||||
$nodeArch = $(node -e "console.log(process.arch)")
|
||||
}
|
||||
|
||||
$npmVersion = $(npm -version)
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Node.js"
|
||||
$GulpInfo = "Gulp $(gulp -version)"
|
||||
$GruntInfo = "Grunt $(grunt -version)"
|
||||
$YarnInfo = "Yarn $(yarn -version)"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $nodeVersion<br/>
|
||||
_Architecture:_ $nodeArch<br/>
|
||||
_Environment:_
|
||||
* PATH: contains location of node.exe<br/>
|
||||
* $GulpInfo<br/>
|
||||
* $GruntInfo<br/>
|
||||
* $YarnInfo<br/>
|
||||
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "npm"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $npmVersion<br/>
|
||||
_Environment:_
|
||||
* PATH: contains location of npm.cmd
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user