chore: improve release script (#2501)

This commit is contained in:
Marvin Hagemeister
2024-06-05 13:24:15 +02:00
committed by GitHub
parent 3fe988893d
commit 7eb9a9b5ff
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
"check:types": "deno check src/**/*.ts src/**/*.tsx tests/**/*.ts tests/**/*.tsx update/**/*.ts plugin-tailwindcss/**/*.ts init/**/*.ts",
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test",
"test:www": "deno test -A tests/www/",
"manifests": "deno run -A genAllManifest.ts"
"release": "deno run -A tools/release.ts"
},
"exclude": ["**/_fresh/*", "**/tmp/*", "*/tests_OLD/**"],
"publish": {
+5 -1
View File
@@ -29,7 +29,11 @@ const version = Deno.args[0];
const current = semver.parse(denoJson.version!);
const next = semver.parse(denoJson.version!);
if (version === "major") {
next.major++;
if (next.prerelease) {
next.prerelease = undefined;
} else {
next.major++;
}
} else if (version === "minor") {
next.minor++;
} else if (version === "patch") {