Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use event name to set isPrerelease #1

Merged
merged 9 commits into from
Nov 9, 2022
Prev Previous commit
Next Next commit
fix: prettier action.ts
mikael-andersson91 committed Nov 9, 2022
commit 88f5cdc2cc2a1a51be89e5eae14828118a8adf29
4 changes: 3 additions & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
@@ -64,7 +64,9 @@ export default async function main() {
.split(',')
.some((branch) => currentBranch.match(branch));
const isPullRequest = isPr(GITHUB_EVENT_NAME);
const isPrerelease = !isReleaseBranch && (isPullRequest || isPreReleaseBranch);
const isPrerelease = !isReleaseBranch && (
isPullRequest || isPreReleaseBranch
);

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