mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Fix a thing
This commit is contained in:
@@ -185,7 +185,7 @@ import * as semver from "semver";
|
||||
if (shouldBump) {
|
||||
await exec("git", ["reset", "--hard", github.context.sha]);
|
||||
let changesetsCliPkgJson = await fs.readJson(
|
||||
require.resolve("@changesets/cli/package.json")
|
||||
path.join("node_modules", "@changesets", "cli", "package.json")
|
||||
);
|
||||
let cmd = semver.lt(changesetsCliPkgJson.version, "2.0.0")
|
||||
? "bump"
|
||||
|
||||
Reference in New Issue
Block a user