Skip to content

Commit acec004

Browse files
Merge pull request #14 from actions/v-dmshib/fix-node_modules
Add Recurse for node_modules
2 parents 6a64b2c + 28dcfa1 commit acec004

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

installers/win-setup-template.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ $ErrorActionPreference = "Stop"
22

33
[Version]$Version = "{{__VERSION__}}"
44
[string]$Architecture = "{{__ARCHITECTURE__}}"
5-
$ArchiveFileName = "tool.7z"
6-
$TempDirectory = Join-Path $env:TEMP "Node"
75

86
$ToolcacheRoot = $env:AGENT_TOOLSDIRECTORY
97
if ([string]::IsNullOrEmpty($ToolcacheRoot)) {
@@ -30,7 +28,7 @@ if (-not (Test-Path $NodeToolcacheArchitecturePath)) {
3028
}
3129

3230
Write-Host "Copy Node.js binaries to hostedtoolcache folder"
33-
Copy-Item -Path * -Destination $NodeToolcacheArchitecturePath
31+
Copy-Item -Path * -Destination $NodeToolcacheArchitecturePath -Recurse
3432
Remove-Item $NodeToolcacheArchitecturePath\setup.ps1 -Force | Out-Null
3533

3634
Write-Host "Create complete file"

0 commit comments

Comments
 (0)