Skip to content

Commit cff6d89

Browse files
authored
Merge pull request #325 from tsconfig/deploy-bases
Deploy bases when any other base changes
2 parents 0026fbf + 6d81f77 commit cff6d89

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scripts/deploy-changed-npm-packages.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ for (const dirEntry of Deno.readDirSync("packages")) {
3636
}
3737

3838
if (uploaded.length) {
39+
// If there's any uploads, we need to update the combined package too
40+
const process = Deno.run({
41+
cmd: ["npm", "publish", "--provenance", "--access", "public"],
42+
stdout: "piped",
43+
cwd: path.join("packages", "bases"),
44+
env: { NODE_AUTH_TOKEN: Deno.env.get("NODE_AUTH_TOKEN")! },
45+
});
46+
47+
for await (const line of bufio.readLines(process.stdout!)) {
48+
console.warn(line);
49+
}
50+
51+
3952
console.log("Uploaded: ", uploaded.join(", "))
4053
} else {
4154
console.log("No uploads")

0 commit comments

Comments
 (0)