Skip to content

Commit 81b3f61

Browse files
radnanAndarist
andauthored
Fixed .changeset state being picked for the version command when cwd parameter is provided (#536)
* actually use cwd parameter when reading changeset state * tweak changeset --------- Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
1 parent 6002dbd commit 81b3f61

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.changeset/plenty-areas-tie.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@changesets/action": patch
33
---
44

5-
Making sure that `.changeset` information is picked up, when `cwd` parameter is provided
5+
Fixed initial `.changeset` state being picked up, when `cwd` parameter is provided

.changeset/splendid-facts-like.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@changesets/action": patch
3+
---
4+
5+
Fixed `.changeset` state being picked for the version command when `cwd` parameter is provided

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
143143
githubToken,
144144
git,
145145
octokit,
146+
cwd,
146147
prTitle: getOptionalInput("title"),
147148
commitMessage: getOptionalInput("commit"),
148149
hasPublishScript,

0 commit comments

Comments
 (0)