Skip to content

Commit

Permalink
Try fix changesets tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed May 6, 2024
1 parent ea8e4ee commit 61a8013
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ const OLD_VERSION = require("../lib/package.json").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];
exec(`pnpm changeset pre ${tag}`);
exec(`pnpm changeset pre ${tag} && pnpm changeset version`);
} else {
/** Apply changeset */
exec("pnpm changeset version");
}
/** Apply changeset */
exec("pnpm changeset version");
const NEW_VERSION = require("../lib/package.json").version;

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

0 comments on commit 61a8013

Please sign in to comment.