Skip to content

Commit

Permalink
bug when version.json doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
haouarihk committed Jun 25, 2024
1 parent 9a7a246 commit a6f9b95
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-textgenerator-plugin",
"name": "Text Generator",
"version": "0.7.22-beta",
"version": "0.7.23-beta",
"minAppVersion": "1.5.8",
"description": "Text generation using AI",
"author": "Noureddine Haouari",
Expand Down
24 changes: 12 additions & 12 deletions scripts/version-bump.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ try {
console.log(` - manifest-beta.json`);
if (!isBeta) {
console.log(` - manifest.json`);
console.log(` - versions.json`);
// console.log(` - versions.json`);
}
console.log(`It will commit, push, create tag ${targetVersion} and push tags`);

Expand Down Expand Up @@ -71,17 +71,17 @@ try {
}

// commit, create tag and push to origin (that will trigger github release action)
try {
execSync(
`git add manifest.json manifest-beta.json versions.json && git commit -m "prepare release ${targetVersion}"`, // && git push origin ${targetVersion}`,
{
cwd: ".",
stdio: "inherit",
}
);
} catch {
// even if this fails, it doesn't matter.
}
// try {
execSync(
`git add manifest.json manifest-beta.json && git commit -m "prepare release ${targetVersion}"`, // && git push origin ${targetVersion}`,
{
cwd: ".",
stdio: "inherit",
}
);
// } catch {
// // even if this fails, it doesn't matter.
// }

execSync(
`git push`,
Expand Down

0 comments on commit a6f9b95

Please sign in to comment.