Revert "fix(release): false positive npm dist-tag add" (#26495)
Reverts nrwl/nx#26494
This commit is contained in:
parent
c764a62060
commit
b54f5c3648
@ -110,12 +110,7 @@ export default async function runExecutor(
|
||||
};
|
||||
}
|
||||
|
||||
// If only one version of a package exists in the registry, versions will be a string instead of an array.
|
||||
const versions = Array.isArray(resultJson.versions)
|
||||
? resultJson.versions
|
||||
: [resultJson.versions];
|
||||
|
||||
if (versions.includes(currentVersion)) {
|
||||
if (resultJson.versions.includes(currentVersion)) {
|
||||
try {
|
||||
if (!isDryRun) {
|
||||
execSync(npmDistTagAddCommandSegments.join(' '), {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user