Fix nightly release job for real (#28825)

This commit is contained in:
Sebastian Silbermann
2024-04-11 18:28:10 +02:00
committed by GitHub
parent 380f23088b
commit 47c64602c7
@@ -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.`
);