Skip to content

Commit 5b51cad

Browse files
committed
Use CI not node_auth_token for dry run check
1 parent 0c5886f commit 5b51cad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy/deployChangedPackages.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Assuming that this means we need to upload this package.`);
8585

8686
// Publish via npm
8787
if (upload) {
88-
if (process.env.NODE_AUTH_TOKEN) {
88+
if (process.env.CI) {
8989
const publish = spawnSync("npm", ["publish", "--access", "public"], {
9090
cwd: fileURLToPath(packageDir),
9191
stdio: "inherit",
@@ -119,8 +119,8 @@ Assuming that this means we need to upload this package.`);
119119
console.log("");
120120

121121
// Warn if we did a dry run.
122-
if (!process.env.NODE_AUTH_TOKEN) {
123-
console.log("Did a dry run because process.env.NODE_AUTH_TOKEN is not set.");
122+
if (!process.env.CI) {
123+
console.log("Did a dry run because process.env.CI is not set.");
124124
}
125125

126126
if (uploaded.length) {

0 commit comments

Comments
 (0)