-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set gh release pre release for pre releases (#237)
- Loading branch information
1 parent
4818aa5
commit 94a7bc3
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { isPreRelease } from "../src/publish-crates-github"; | ||
|
||
describe("publish-crates-github", () => { | ||
test("isPreRelease()", async () => { | ||
expect(isPreRelease("1.0.0")).toBe(false); | ||
expect(isPreRelease("1.0.0.0")).toBe(true); | ||
expect(isPreRelease("1.0.0.11")).toBe(true); | ||
expect(isPreRelease("1.0.0-rc.1")).toBe(true); | ||
expect(isPreRelease("1.0.0.1")).toBe(true); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters