Fix for changesets v1

This commit is contained in:
mitchellhamilton
2019-09-27 13:17:13 +10:00
parent 08f1c47719
commit 35384689aa
2 changed files with 5 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -60,7 +60,10 @@ import * as semver from "semver";
let hasChangesets = fs
.readdirSync(`${process.cwd()}/.changeset`)
.some(x => x !== "README.md" && x.endsWith(".md"));
.some(
x =>
x !== "README.md" && (x.endsWith(".md") || x.endsWith("changes.json"))
);
let publishScript = core.getInput("publish");