Skip to content

Commit 5649ff4

Browse files
authored
Remove cwd option (#659)
1 parent 4f718b5 commit 5649ff4

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎.changeset/lemon-turtles-itch.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@changesets/action": major
3+
---
4+
5+
Remove `cwd` option for `changesets/action`. Use the step `working-directory` option instead to change the directory.

‎action.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ inputs:
1414
version:
1515
description: "The command to update version, edit CHANGELOG, read and delete changesets. Default to `changeset version` if not provided"
1616
required: false
17-
cwd:
18-
description: Sets the cwd for the node process. Default to `process.cwd()`
19-
required: false
2017
commit:
2118
description: |
2219
The commit message. Default to `Version Packages`

‎src/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
1919
return;
2020
}
2121

22-
const cwd = path.resolve(getOptionalInput("cwd") ?? "");
23-
core.info(`using resolved cwd: ${cwd}`);
22+
// If the user needs to change the cwd, set `working-directory` in the step instead
23+
const cwd = process.cwd();
2424

2525
const octokit = setupOctokit(githubToken);
2626
const commitMode = getOptionalInput("commitMode") ?? "git-cli";

0 commit comments

Comments
 (0)