Remove cwd option (#659)

This commit is contained in:
Bjorn Lu
2026-06-23 06:35:46 +00:00
committed by GitHub
parent 4f718b5921
commit 5649ff41b8
3 changed files with 7 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@changesets/action": major
---
Remove `cwd` option for `changesets/action`. Use the step `working-directory` option instead to change the directory.
-3
View File
@@ -14,9 +14,6 @@ inputs:
version:
description: "The command to update version, edit CHANGELOG, read and delete changesets. Default to `changeset version` if not provided"
required: false
cwd:
description: Sets the cwd for the node process. Default to `process.cwd()`
required: false
commit:
description: |
The commit message. Default to `Version Packages`
+2 -2
View File
@@ -19,8 +19,8 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
return;
}
const cwd = path.resolve(getOptionalInput("cwd") ?? "");
core.info(`using resolved cwd: ${cwd}`);
// If the user needs to change the cwd, set `working-directory` in the step instead
const cwd = process.cwd();
const octokit = setupOctokit(githubToken);
const commitMode = getOptionalInput("commitMode") ?? "git-cli";