Skip to content

Commit

Permalink
take force into account even when existing version is published
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed May 2, 2024
1 parent 6d75aca commit 89d10a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions publish-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ openGalleryApi.post = (url, data, additionalHeaders) =>
{ cwd: path.join(context.repo, extension.location ?? "."), quiet: false },
);
}
} catch {}
} catch { }

if (extension.custom) {
try {
Expand Down Expand Up @@ -188,7 +188,7 @@ openGalleryApi.post = (url, data, additionalHeaders) =>
`extensions.json is out-of-date: Open VSX version ${context.ovsxVersion} is already greater than specified version ${context.version}`,
);
}
if (semver.eq(context.ovsxVersion, context.version)) {
if (semver.eq(context.ovsxVersion, context.version) && process.env.FORCE !== "true") {
console.log(`[SKIPPED] Requested version ${context.version} is already published on Open VSX`);
return;
}
Expand Down

0 comments on commit 89d10a6

Please sign in to comment.