mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Remove cwd option (#659)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@changesets/action": major
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove `cwd` option for `changesets/action`. Use the step `working-directory` option instead to change the directory.
|
||||||
@@ -14,9 +14,6 @@ inputs:
|
|||||||
version:
|
version:
|
||||||
description: "The command to update version, edit CHANGELOG, read and delete changesets. Default to `changeset version` if not provided"
|
description: "The command to update version, edit CHANGELOG, read and delete changesets. Default to `changeset version` if not provided"
|
||||||
required: false
|
required: false
|
||||||
cwd:
|
|
||||||
description: Sets the cwd for the node process. Default to `process.cwd()`
|
|
||||||
required: false
|
|
||||||
commit:
|
commit:
|
||||||
description: |
|
description: |
|
||||||
The commit message. Default to `Version Packages`
|
The commit message. Default to `Version Packages`
|
||||||
|
|||||||
+2
-2
@@ -19,8 +19,8 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const cwd = path.resolve(getOptionalInput("cwd") ?? "");
|
// If the user needs to change the cwd, set `working-directory` in the step instead
|
||||||
core.info(`using resolved cwd: ${cwd}`);
|
const cwd = process.cwd();
|
||||||
|
|
||||||
const octokit = setupOctokit(githubToken);
|
const octokit = setupOctokit(githubToken);
|
||||||
const commitMode = getOptionalInput("commitMode") ?? "git-cli";
|
const commitMode = getOptionalInput("commitMode") ?? "git-cli";
|
||||||
|
|||||||
Reference in New Issue
Block a user