diff --git a/src/scripts/ci/Invoke-Generate.ps1 b/src/scripts/ci/Invoke-Generate.ps1 index 63189ef..6d36633 100644 --- a/src/scripts/ci/Invoke-Generate.ps1 +++ b/src/scripts/ci/Invoke-Generate.ps1 @@ -37,10 +37,10 @@ $env:RELEASE_NOTES_PATH = '/path/to/.release-notes.md' #> +Set-StrictMode -Version Latest $ErrorActionPreference = 'Stop' $ErrorView = 'NormalView' $VerbosePreference = 'Continue' -Set-StrictMode -Version Latest try { Push-Location $PSScriptRoot diff --git a/src/scripts/ci/Invoke-Release.ps1 b/src/scripts/ci/Invoke-Release.ps1 index f36b08d..f312bb8 100644 --- a/src/scripts/ci/Invoke-Release.ps1 +++ b/src/scripts/ci/Invoke-Release.ps1 @@ -1,10 +1,10 @@ [CmdletBinding()] param() +Set-StrictMode -Version Latest $ErrorActionPreference = 'Stop' $ErrorView = 'NormalView' $VerbosePreference = 'Continue' -Set-StrictMode -Version Latest try { Push-Location $PSScriptRoot