mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix: build packages before release tests
This commit is contained in:
parent
c23b58a6d8
commit
d35237cfda
3 changed files with 9 additions and 4 deletions
|
|
@ -218,15 +218,15 @@ if (!options.skipCheck) {
|
|||
run("npm", ["run", "check"], { cwd: repoRoot });
|
||||
}
|
||||
|
||||
if (!options.skipTest) {
|
||||
run("./test.sh", [], { cwd: repoRoot });
|
||||
}
|
||||
|
||||
for (const pkg of packages) {
|
||||
run("npm", ["run", "clean"], { cwd: pkg.directory });
|
||||
run("npm", ["run", pkg.directory === "packages/ai" ? "build:offline" : "build"], { cwd: pkg.directory });
|
||||
}
|
||||
|
||||
if (!options.skipTest) {
|
||||
run("./test.sh", [], { cwd: repoRoot });
|
||||
}
|
||||
|
||||
const tarballs = new Map();
|
||||
for (const pkg of packages) {
|
||||
const tarball = packPackage(pkg, tarballDirectory);
|
||||
|
|
|
|||
|
|
@ -176,6 +176,10 @@ console.log("Running checks...");
|
|||
run("npm run check");
|
||||
console.log();
|
||||
|
||||
console.log("Building packages for tests...");
|
||||
run("npm run build:offline");
|
||||
console.log();
|
||||
|
||||
console.log("Running tests...");
|
||||
run("./test.sh");
|
||||
console.log();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue