Skip to content

Commit 4c96fb4

Browse files
Remove dependency installation logic for PSSemVer from publish script as it is in init
1 parent 695752f commit 4c96fb4

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

scripts/publish.ps1

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
11
[CmdletBinding()]
22
param()
33

4-
#region Install dependencies
5-
$retryCount = 5
6-
$retryDelay = 10
7-
for ($i = 0; $i -lt $retryCount; $i++) {
8-
try {
9-
Install-PSResource -Name 'PSSemVer' -TrustRepository -Repository PSGallery
10-
break
11-
} catch {
12-
Write-Warning "Installation of PSSemVer failed with error: $_"
13-
if ($i -eq $retryCount - 1) {
14-
throw
15-
}
16-
Write-Warning "Retrying in $retryDelay seconds..."
17-
Start-Sleep -Seconds $retryDelay
18-
}
19-
}
20-
#endregion Install dependencies
21-
224
#region Load inputs
235
$env:GITHUB_REPOSITORY_NAME = $env:GITHUB_REPOSITORY -replace '.+/'
246

0 commit comments

Comments
 (0)