Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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/plenty-areas-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@changesets/action": patch
---

Making sure that `.changeset` information is picked up, when `cwd` parameter is provided
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
}

const cwd = path.resolve(getOptionalInput("cwd") ?? "");
core.info(`setting working folder to: ${cwd}`);

const octokit = setupOctokit(githubToken);
const commitMode = getOptionalInput("commitMode") ?? "git-cli";
Expand All @@ -43,7 +44,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