Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/better-facts-like.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@changesets/action": patch
---

actually use cwd parameter when reading changeset state
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
`machine github.com\nlogin github-actions[bot]\npassword ${githubToken}`
);

let { changesets } = await readChangesetState();
let { changesets } = await readChangesetState(cwd);

let publishScript = core.getInput("publish");
let hasChangesets = changesets.length !== 0;
Expand Down Expand Up @@ -122,6 +122,7 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
script: getOptionalInput("version"),
git,
octokit,
cwd,
prTitle: getOptionalInput("title"),
commitMessage: getOptionalInput("commit"),
hasPublishScript,
Expand Down