Skip to content

Commit c3d8827

Browse files
authored
Add hasChangesets output (#102)
1 parent c291823 commit c3d8827

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
1414
return;
1515
}
1616

17-
core.setOutput("published", "false");
18-
core.setOutput("publishedPackages", "[]");
19-
2017
console.log("setting git user");
2118
await gitUtils.setupUser();
2219

@@ -32,6 +29,10 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
3229
let hasChangesets = changesets.length !== 0;
3330
let hasPublishScript = !!publishScript;
3431

32+
core.setOutput("published", "false");
33+
core.setOutput("publishedPackages", "[]");
34+
core.setOutput("hasChangesets", String(hasChangesets));
35+
3536
switch (true) {
3637
case !hasChangesets && !hasPublishScript:
3738
console.log("No changesets found");

0 commit comments

Comments
 (0)