feat: clarify intended usage of deno tasks/scripts (#1589)
This commit is contained in:
1 parent
bc3dd70fff
commit
c9bc550c03
6 files changed
+18
-11
No files matched your search
@@ -9,7 +9,7 @@ const args = parseArgs(Deno.args, { boolean: ["all"] });
|
||||
|
||||
if (!Deno.env.get("CI") && !args.all) {
|
||||
throw new Error(
|
||||
"This script is intended to be used in CI. Userstyle versions are automatically bumped after pull requests are merged.",
|
||||
"This script should only be used in CI. Userstyle versions are automatically bumped after pull requests are merged.",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,12 @@ import {
|
||||
getUserstylesTeamMembers,
|
||||
} from "@/utils.ts";
|
||||
|
||||
if (!Deno.env.get("CI")) {
|
||||
throw new Error(
|
||||
"This script should only be used in CI. Generated READMEs and other health files are automatically updated after pull requests are merged.",
|
||||
);
|
||||
}
|
||||
|
||||
const userstylesData = getUserstylesData();
|
||||
const portsData = await getPortsData();
|
||||
|
||||
|
||||
Reference in new issue
Block a user