Add API release workflow and harden CLI npm publish

This commit is contained in:
Gregory Schier
2026-02-22 14:11:26 -08:00
parent a19ee9b502
commit 8315e4afad
6 changed files with 95 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
const { copyFileSync, existsSync, readFileSync, writeFileSync } = require("node:fs");
const { chmodSync, copyFileSync, existsSync, readFileSync, writeFileSync } = require("node:fs");
const { join } = require("node:path");
const version = process.env.YAAK_CLI_VERSION?.replace(/^v/, "");
@@ -50,6 +50,9 @@ for (const { src, dest } of binaries) {
process.exit(1);
}
copyFileSync(src, dest);
if (!dest.endsWith(".exe")) {
chmodSync(dest, 0o755);
}
}
for (const pkg of packages) {