Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed May 7, 2024
1 parent eb80ede commit 85c281a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ 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];
console.log({ tag });
execSync(`pnpm changeset pre enter ${tag} && pnpm changeset version`);
} else {
/** Apply changeset */
execSync("pnpm changeset version");
try {
execSync(`pnpm changeset pre enter ${tag}`);
} catch (e) {
console.log({ e });
}
}
/** Apply changeset */
execSync("pnpm changeset version");
const NEW_VERSION = require("../lib/package.json").version;

const [newMajor, newMinor] = NEW_VERSION.split(".");
Expand Down

0 comments on commit 85c281a

Please sign in to comment.