Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lemon-turtles-itch.md
Original file line numberDiff line numberDiff line change
@@ -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 changes: 0 additions & 3 deletions action.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -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`
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -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";
Expand Down