Skip to content

Commit 724f4b8

Browse files
authored
ci: Update generate.ps1
Implement fixes suggested in #1
1 parent 508380f commit 724f4b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

infra/hooks/postprovision/generate.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $envFilePath = Join-Path -Path $rootDir -ChildPath ".env"
1717
if (Test-Path $envFilePath) {
1818
Get-Content $envFilePath | ForEach-Object {
1919
if ($_ -match "^(.*?)=(.*)$") {
20-
[System.Environment]::SetEnvironmentVariable($matches[1], $matches[2])
20+
[System.Environment]::SetEnvironmentVariable($matches[1], $matches[2].Trim('"'))
2121
Write-Output "Loaded environment variable: $($matches[1])"
2222
}
2323
}
@@ -54,11 +54,12 @@ Write-Output 'Running "pnpm generate"'
5454
# we do this by setting the AZURE_CLIENT_ID to an empty string before running the command
5555
$env:AZURE_CLIENT_ID = ""
5656
Try {
57-
pnpm generate
57+
npm install pnpm
58+
pnpm install
5859
Write-Output "Command 'pnpm generate' completed successfully"
5960
} Catch {
6061
Write-Error "Error: 'pnpm generate' failed"
6162
exit 1
6263
}
6364

64-
Write-Output "Script completed successfully"
65+
Write-Output "Script completed successfully"

0 commit comments

Comments
 (0)