Merge pull request #14 from actions/v-dmshib/fix-node_modules

Add Recurse for node_modules
This commit is contained in:
Maxim Lobanov 2020-05-07 09:07:05 +03:00 committed by GitHub
commit acec00437b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -2,8 +2,6 @@ $ErrorActionPreference = "Stop"
[Version]$Version = "{{__VERSION__}}"
[string]$Architecture = "{{__ARCHITECTURE__}}"
$ArchiveFileName = "tool.7z"
$TempDirectory = Join-Path $env:TEMP "Node"
$ToolcacheRoot = $env:AGENT_TOOLSDIRECTORY
if ([string]::IsNullOrEmpty($ToolcacheRoot)) {
@ -30,7 +28,7 @@ if (-not (Test-Path $NodeToolcacheArchitecturePath)) {
}
Write-Host "Copy Node.js binaries to hostedtoolcache folder"
Copy-Item -Path * -Destination $NodeToolcacheArchitecturePath
Copy-Item -Path * -Destination $NodeToolcacheArchitecturePath -Recurse
Remove-Item $NodeToolcacheArchitecturePath\setup.ps1 -Force | Out-Null
Write-Host "Create complete file"