Fix a thing

This commit is contained in:
mitchellhamilton
2019-09-01 10:18:35 +10:00
parent ef7414caf2
commit f32f9f6d83
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -79,6 +79,10 @@ async function execWithOutput(
.readdirSync(`${process.cwd()}/.changeset`)
.some(x => x !== "config.js" && x !== "README.md");
let publishScript = core.getInput("publish");
if (!hasChangesets && !publishScript) {
console.log("No changesets found");
return;
}
if (!hasChangesets && publishScript) {
console.log(
"No changesets found, attempting to publish any unpublished packages to npm"