fix(release): publish prereleases under the next npm tag
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import semver from "semver";
|
||||
|
||||
const version = process.argv[2];
|
||||
if (version === undefined || semver.valid(version) !== version) {
|
||||
console.error("Expected an exact SemVer version.");
|
||||
process.exitCode = 1;
|
||||
} else {
|
||||
process.stdout.write(semver.prerelease(version) === null ? "latest" : "next");
|
||||
}
|
||||
Reference in New Issue
Block a user