Skip to content

Commit

Permalink
Update version script
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinscott committed Mar 16, 2022
1 parent b63fd69 commit 94db734
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/package-scripts/update-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const updateVersion = () => new Promise(resolve => {
}
}));
if (updateDependencies) {
return updateMultiplePackages(EXAMPLES_DIR, version, commit, packageJSON => {
updateMultiplePackages(EXAMPLES_DIR, version, commit, packageJSON => {
const deps = packageJSON.dependencies;
deps['upscaler'] = version;
return packageJSON;
Expand All @@ -148,7 +148,13 @@ const updateVersion = () => new Promise(resolve => {
}
if (commit) {
const cmd = `git commit -m "Updated version to ${version} for ${formatArray(packages)}"`;
await execute(cmd);
await new Promise(resolve => setTimeout(resolve, 100));
try {
await execute(cmd);
} catch(err) {
console.error('*******', err)
throw err;
}
}
resolve();
});
Expand Down

0 comments on commit 94db734

Please sign in to comment.