mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Fix publishing with changesets 2
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -60,8 +60,9 @@ import * as semver from "semver";
|
|||||||
|
|
||||||
let hasChangesets = fs
|
let hasChangesets = fs
|
||||||
.readdirSync(`${process.cwd()}/.changeset`)
|
.readdirSync(`${process.cwd()}/.changeset`)
|
||||||
.some(x => x !== "config.js" && x !== "README.md");
|
.some(x => x !== "config.json" && x !== "config.js" && x !== "README.md");
|
||||||
let publishScript = core.getInput("publish");
|
let publishScript = core.getInput("publish");
|
||||||
|
|
||||||
if (!hasChangesets && !publishScript) {
|
if (!hasChangesets && !publishScript) {
|
||||||
console.log("No changesets found");
|
console.log("No changesets found");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user