Skip to content

Commit

Permalink
Update release script.
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER committed Oct 17, 2022
1 parent 0c8c635 commit 11e2d65
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions create-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@ $distDir = "dist"
$distVersionDir = "$distDir/$version"
$vsixName = "vscode-loretta-$version.vsix"

Write-Output "Version: $version"
Write-Output "::set-output name=VERSION::$version"

yarn run compile

Remove-Item $distDir -Recurse -ErrorAction SilentlyContinue
New-Item $distVersionDir -ItemType Directory
foreach ($path in $paths) {
Copy-Item -Path $path -Destination "$distVersionDir/$path" -Recurse
Copy-Item $path -Destination "$distVersionDir/$path" -Recurse
}

Push-Location $distVersionDir
npx vsce package -o "../$vsixName"
Pop-Location
Remove-Item -Path $distVersionDir -Recurse

Remove-Item $distVersionDir -Recurse -ErrorAction Continue

0 comments on commit 11e2d65

Please sign in to comment.