Skip to content

Commit

Permalink
Fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 24, 2024
1 parent 52e2fe9 commit 5416e93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/manual-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const DEFAULT_BRANCH = process.env.DEFAULT_BRANCH;
const isLatestRelease = BRANCH === DEFAULT_BRANCH || BRANCH.includes("release-");
let tag = "latest";

const OLD_VERSION = require("../lib/package.json").version;
const pkg = require("../lib/package.json");

const OLD_VERSION = pkg.version;

if (!isLatestRelease) {
/** pre-release branch name should be the tag name (e.g., beta, canery, etc.) or tag name followed by a '-' and version or other specifiers. e.g. beta-2.0 */
tag = BRANCH.split("-")[0];
Expand Down

0 comments on commit 5416e93

Please sign in to comment.