Skip to content

Commit 785933c

Browse files
set pull-request commits to be treated with pre-release tags
Co-authored-by: Anna Thornton <[email protected]>
1 parent 9d35d64 commit 785933c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default async function main() {
5959
.split(',')
6060
.some((branch) => currentBranch.match(branch));
6161
const isPullRequest = isPr(GITHUB_REF);
62-
const isPrerelease = !isReleaseBranch && !isPullRequest && isPreReleaseBranch;
62+
const isPrerelease = isPullRequest || (!isReleaseBranch && isPreReleaseBranch);
6363

6464
// Sanitize identifier according to
6565
// https://semver.org/#backusnaur-form-grammar-for-valid-semver-versions

0 commit comments

Comments
 (0)