Skip to content

Commit 3b00a9d

Browse files
committed
fix(ci): pin package version in release smoke test so prerelease tags can ship
1 parent cf3857c commit 3b00a9d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ jobs:
154154
$nugetDir = (Resolve-Path (Join-Path $env:GITHUB_WORKSPACE "artifacts/nuget")).Path
155155
dotnet new console -o $smoke --force
156156
Push-Location $smoke
157-
dotnet add package GeneralZip --source "$nugetDir"
157+
# Pin the version: without it, dotnet add package rejects prerelease builds (e.g. 0.0.1-beta)
158+
dotnet add package GeneralZip --version $env:PACKAGE_VERSION --source "$nugetDir"
158159
Set-Content -Path Program.cs -Value @'
159160
using GeneralZip;
160161
using static GeneralZip.GeneralZip;

0 commit comments

Comments
 (0)