We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b11181f commit a0fcbdaCopy full SHA for a0fcbda
1 file changed
scripts/publish.js
@@ -43,9 +43,13 @@ if (isPatch) {
43
);
44
} catch {}
45
} else {
46
- require("./update-security-md")(`${newMajor}.${newMinor}`, `${oldMajor}.${oldMinor}`);
47
- /** Create new release branch for every Major or Minor release */
48
- execSync(`git checkout -b ${releaseBranch} && git push origin ${releaseBranch}`);
+ try {
+ require("./update-security-md")(`${newMajor}.${newMinor}`, `${oldMajor}.${oldMinor}`);
+ /** Create new release branch for every Major or Minor release */
49
+ execSync(`git checkout -b ${releaseBranch} && git push origin ${releaseBranch}`);
50
+ } catch (err) {
51
+ console.error("Error pushing to release branch: ", err);
52
+ }
53
}
54
55
const { visibility } = JSON.parse(execSync("gh repo view --json visibility").toString());
0 commit comments