mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Fix reading .changeset directory from path provided in cwd parameter (#502)
* Adding informational message about resolved `cwd` location * Reading changesets information from provided folder * Adding changeset information * Apply suggestion from @Andarist --------- Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
This commit is contained in:
co-authored by
Mateusz Burzyński
parent
a7c500273b
commit
6002dbd987
+2
-1
@@ -20,6 +20,7 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
|
||||
}
|
||||
|
||||
const cwd = path.resolve(getOptionalInput("cwd") ?? "");
|
||||
core.info(`using resolved cwd: ${cwd}`);
|
||||
|
||||
const octokit = setupOctokit(githubToken);
|
||||
const commitMode = getOptionalInput("commitMode") ?? "git-cli";
|
||||
@@ -45,7 +46,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;
|
||||
|
||||
Reference in New Issue
Block a user