Skip to content

Commit

Permalink
Merge pull request #14 from actions/v-dmshib/fix-node_modules
Browse files Browse the repository at this point in the history
Add Recurse for node_modules
  • Loading branch information
maxim-lobanov committed May 7, 2020
2 parents 6a64b2c + 28dcfa1 commit acec004
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions installers/win-setup-template.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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"
Expand Down

0 comments on commit acec004

Please sign in to comment.