Skip to content

Commit ce03831

Browse files
committed
e
1 parent 91ffe09 commit ce03831

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/incrementVersionAndCreatePR.cjs

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ module.exports = async ({ github, context, versionType }) => {
1313

1414
async function incrementVersion() {
1515
console.log(`Incrementing version with ${versionType}`);
16-
await execAsync(`npm version ${versionType}`);
16+
try {
17+
console.log("logtext");
18+
await execAsync(`npm version ${versionType}`);
19+
} catch (e) {
20+
console.log(e);
21+
console.log("Error in incrementing version", e);
22+
throw new Error("Error in incrementing version", e);
23+
}
1724
console.log("Version incremented");
1825
const packageJson = require("../../package.json");
1926
console.log("packageJson");

0 commit comments

Comments
 (0)