mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
Upstream made more future-proof (#4083)
* Add some logs to verfiy * Verify equals solution * Test for of solution * Code cleanup
This commit is contained in:
parent
f1ea9048b4
commit
830887528b
@ -24,8 +24,16 @@ module.exports = async ({ exec, github, dependencyName, tag }) => {
|
||||
}
|
||||
};
|
||||
await exec.exec(`npm dist-tag ls @alfresco/${dependencyName}`, [], options);
|
||||
let matchedPkgVersion = '';
|
||||
const tagsType = packageDistTag.split('\n');
|
||||
const matchedPkgVersion = tagsType.find((tagType) => tagType.includes(tag))?.split(':')[1].trim();
|
||||
for (const tagType of tagsType) {
|
||||
const tagSplit = tagType.split(':');
|
||||
if (tagSplit[0].trim() === tag) {
|
||||
matchedPkgVersion = tagSplit[1].trim();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const latestPkgToUpdate = availablePackages.find((package) => package.name === matchedPkgVersion);
|
||||
|
||||
if (localVersion === latestPkgToUpdate?.name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user