Skip to content

Commit 683889b

Browse files
committed
scripts: build ensure npm login earlier
1 parent d404262 commit 683889b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/release-npm.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { spawn } from "~/core/spawn";
66

77
process.env.NODE_ENV = "production";
88

9+
// ensure npm is authenticated
10+
await spawn(`npm whoami`);
11+
912
// get paths relative to this script
1013
const REPO_ROOT = (await spawn.sync("git rev-parse --show-toplevel")).stdout;
1114
const DIST_DIR = path.join(REPO_ROOT, "dist");
@@ -54,9 +57,6 @@ for (const filepath of package_json.files) {
5457
}
5558
}
5659

57-
// ensure npm is authenticated
58-
await spawn(`npm whoami`);
59-
6060
process.chdir(REPO_ROOT);
6161

6262
await spawn.sync(`git commit -a -m ${version}`);

0 commit comments

Comments
 (0)