mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Fix a thing
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -185,7 +185,7 @@ import * as semver from "semver";
|
|||||||
if (shouldBump) {
|
if (shouldBump) {
|
||||||
await exec("git", ["reset", "--hard", github.context.sha]);
|
await exec("git", ["reset", "--hard", github.context.sha]);
|
||||||
let changesetsCliPkgJson = await fs.readJson(
|
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")
|
let cmd = semver.lt(changesetsCliPkgJson.version, "2.0.0")
|
||||||
? "bump"
|
? "bump"
|
||||||
|
|||||||
Reference in New Issue
Block a user