From be4f40d11228ab5cbc94726060275b684311ea91 Mon Sep 17 00:00:00 2001 From: Oleksii Shytikov Date: Thu, 22 May 2025 15:44:57 +0200 Subject: [PATCH 1/3] Adding informational message about resolved `cwd` location --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 1b0f63ab..d1d6552e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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"; From f6b19ea2da1a52bef3e4a7790465a45ff5245894 Mon Sep 17 00:00:00 2001 From: Oleksii Shytikov Date: Thu, 22 May 2025 15:46:15 +0200 Subject: [PATCH 2/3] Reading changesets information from provided folder --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d1d6552e..135a05b5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,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; From 6cbf312524d059059c1e941045bf59b3ee062423 Mon Sep 17 00:00:00 2001 From: Oleksii Shytikov Date: Thu, 22 May 2025 15:50:36 +0200 Subject: [PATCH 3/3] Adding changeset information --- .changeset/plenty-areas-tie.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/plenty-areas-tie.md diff --git a/.changeset/plenty-areas-tie.md b/.changeset/plenty-areas-tie.md new file mode 100644 index 00000000..663b7318 --- /dev/null +++ b/.changeset/plenty-areas-tie.md @@ -0,0 +1,5 @@ +--- +"@changesets/action": patch +--- + +Making sure that `.changeset` information is picked up, when `cwd` parameter is provided