From d215e47ea93cabc5bdcd77e3649d8db77faa3a4d Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Thu, 11 Apr 2024 18:28:10 +0200 Subject: [PATCH] Fix nightly release job for real (#28825) --- scripts/release/publish-commands/publish-to-npm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/publish-commands/publish-to-npm.js b/scripts/release/publish-commands/publish-to-npm.js index e309e3999bb81..d9e3b1902383f 100644 --- a/scripts/release/publish-commands/publish-to-npm.js +++ b/scripts/release/publish-commands/publish-to-npm.js @@ -19,7 +19,7 @@ const run = async ({cwd, dry, tags, ci}, packageName, otp) => { // But for now the easiest way is just to ask if this is expected. const {status} = spawnSync('npm', ['view', `${packageName}@${version}`]); const packageExists = status === 0; - if (!packageExists) { + if (packageExists) { console.log( theme`{package ${packageName}} {version ${version}} has already been published.` );