mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-08 14:42:46 +08:00
chore(release script): remove validate-json step if only running in the backend
This commit is contained in:
parent
63b63ffa9c
commit
9891dac323
1 changed files with 10 additions and 7 deletions
|
@ -176,17 +176,20 @@ const installDependencies = () => {
|
|||
|
||||
const buildProject = () => {
|
||||
console.log("Building project...");
|
||||
let filter = "";
|
||||
|
||||
if (isFrontend && !isBackend) {
|
||||
filter = "--filter @monkeytype/frontend";
|
||||
runProjectRootCommand(
|
||||
"SENTRY=1 npx turbo lint test validate-json build --filter @monkeytype/frontend --force"
|
||||
);
|
||||
} else if (isBackend && !isFrontend) {
|
||||
filter = "--filter @monkeytype/backend";
|
||||
runProjectRootCommand(
|
||||
"SENTRY=1 npx turbo lint test build --filter @monkeytype/backend --force"
|
||||
);
|
||||
} else {
|
||||
runProjectRootCommand(
|
||||
"SENTRY=1 npx turbo lint test validate-json build --force"
|
||||
);
|
||||
}
|
||||
|
||||
runProjectRootCommand(
|
||||
"SENTRY=1 npx turbo lint test validate-json build " + filter + " --force"
|
||||
);
|
||||
};
|
||||
|
||||
const deployBackend = () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue