Skip to content

Commit

Permalink
fix: bump version files range
Browse files Browse the repository at this point in the history
  • Loading branch information
dockfries committed Nov 30, 2023
1 parent d8acc3f commit 2b711a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ import { versionBump } from "bumpp";
let pkgName, pkgPath;

function bumpVersion() {
const isCore = pkgName === "core";
return versionBump({
all: true,
push: false,
tag: pkgName === "core",
tag: isCore,
execute: "pnpm changelog",
commit: `chore(release): ${pkgName} v%s`,
files: ["./package.json", "./packages/core/package.json"],
files: [
isCore && "./package.json",
`./packages/${pkgName}/package.json`,
].filter(Boolean),
cwd: process.cwd(),
});
}
Expand Down

0 comments on commit 2b711a3

Please sign in to comment.