Skip to content

Commit cdfbe77

Browse files
🪲[Fix] Prerelease tags set to head commit (#19)
- Fix so prerelease tags are set on the head branch, was `main` as per default in `gh release create`.
1 parent ff914ef commit cdfbe77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/main.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ if ($createPrerelease -or $createRelease) {
210210
}
211211
}
212212

213-
gh release create $newVersion --title $newVersion --generate-notes --prerelease
213+
gh release create $newVersion --title $newVersion --target $pull_request.head.ref --generate-notes --prerelease
214214
if ($LASTEXITCODE -ne 0) {
215215
Write-Error "Failed to create the release [$newVersion]."
216216
exit $LASTEXITCODE

0 commit comments

Comments
 (0)