We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d404262 commit 683889bCopy full SHA for 683889b
1 file changed
scripts/release-npm.ts
@@ -6,6 +6,9 @@ import { spawn } from "~/core/spawn";
6
7
process.env.NODE_ENV = "production";
8
9
+// ensure npm is authenticated
10
+await spawn(`npm whoami`);
11
+
12
// get paths relative to this script
13
const REPO_ROOT = (await spawn.sync("git rev-parse --show-toplevel")).stdout;
14
const DIST_DIR = path.join(REPO_ROOT, "dist");
@@ -54,9 +57,6 @@ for (const filepath of package_json.files) {
54
57
}
55
58
56
59
-// ensure npm is authenticated
-await spawn(`npm whoami`);
-
60
process.chdir(REPO_ROOT);
61
62
await spawn.sync(`git commit -a -m ${version}`);
0 commit comments