We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7149b49 commit 80bbdd5Copy full SHA for 80bbdd5
scripts/release/publish-commands/publish-to-npm.js
@@ -19,7 +19,7 @@ const run = async ({cwd, dry, tags, ci}, packageName, otp) => {
19
// But for now the easiest way is just to ask if this is expected.
20
const {status} = spawnSync('npm', ['view', `${packageName}@${version}`]);
21
const packageExists = status === 0;
22
- if (!packageExists) {
+ if (packageExists) {
23
console.log(
24
theme`{package ${packageName}} {version ${version}} has already been published.`
25
);
0 commit comments