Skip to content

Commit 1f8fb99

Browse files
committed
fix: Use version from package.json in Chocolatey CI workflow
The nuspec version may lag behind package.json since manifests are updated after the release. Pass --version to choco pack to use the correct version.
1 parent 45b4f4d commit 1f8fb99

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/chocolatey.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
- name: Pack Chocolatey package
2828
shell: pwsh
2929
run: |
30+
$version = "${{ steps.version.outputs.version }}"
3031
$manifestDir = "manifests/chocolatey"
31-
choco pack "$manifestDir/env2op-cli.nuspec" --outputdirectory "$manifestDir"
32+
choco pack "$manifestDir/env2op-cli.nuspec" --version $version --outputdirectory "$manifestDir"
3233
$nupkg = Get-ChildItem "$manifestDir/*.nupkg" | Select-Object -First 1
3334
if (-not $nupkg) {
3435
throw "Failed to create .nupkg file"

0 commit comments

Comments
 (0)