From 4b785655737d8afa784e1743a24488f8a2a71218 Mon Sep 17 00:00:00 2001 From: ross-weir <29697678+ross-weir@users.noreply.github.com> Date: Wed, 10 Dec 2025 00:47:59 +1100 Subject: [PATCH 1/3] fix releaes pr workflow --- .github/workflows/release-pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index eecbc210..81ad8333 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -6,7 +6,7 @@ on: jobs: release_check: - if: github.repository == 'changesets/action' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/release-pr') + if: github.repository == 'Sovereign-Labs/changesets-action' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/release-pr') runs-on: ubuntu-latest steps: - id: report_in_progress @@ -31,7 +31,7 @@ jobs: in_progress_reaction_id: ${{ steps.report_in_progress.outputs.in_progress_reaction_id }} release: - if: github.repository == 'changesets/action' + if: github.repository == 'Sovereign-Labs/changesets-action' timeout-minutes: 20 runs-on: ubuntu-latest needs: release_check @@ -86,7 +86,7 @@ jobs: needs: [release_check, release] timeout-minutes: 2 runs-on: ubuntu-latest - if: failure() && github.repository == 'changesets/action' && (needs.release_check.result == 'failure' || needs.release.result == 'failure') + if: failure() && github.repository == 'Sovereign-Labs/changesets-action' && (needs.release_check.result == 'failure' || needs.release.result == 'failure') steps: - run: gh api /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions -f content='-1' env: From 0ed9835699fee935cc0af48a65136588464690d1 Mon Sep 17 00:00:00 2001 From: ross-weir <29697678+ross-weir@users.noreply.github.com> Date: Wed, 10 Dec 2025 00:49:34 +1100 Subject: [PATCH 2/3] use cwd --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1b0f63ab..0b48ab3a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -43,7 +43,7 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined; `machine github.com\nlogin github-actions[bot]\npassword ${githubToken}` ); - let { changesets } = await readChangesetState(); + let { changesets } = await readChangesetState(cwd); let publishScript = core.getInput("publish"); let hasChangesets = changesets.length !== 0; @@ -123,6 +123,7 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined; git, octokit, prTitle: getOptionalInput("title"), + cwd, commitMessage: getOptionalInput("commit"), hasPublishScript, branch: getOptionalInput("branch"), From 83e77bece4222f4a88b2b0728c1715cfef863054 Mon Sep 17 00:00:00 2001 From: ross-weir <29697678+ross-weir@users.noreply.github.com> Date: Wed, 10 Dec 2025 00:51:32 +1100 Subject: [PATCH 3/3] add changeset --- .changeset/open-bikes-behave.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/open-bikes-behave.md diff --git a/.changeset/open-bikes-behave.md b/.changeset/open-bikes-behave.md new file mode 100644 index 00000000..3c590620 --- /dev/null +++ b/.changeset/open-bikes-behave.md @@ -0,0 +1,5 @@ +--- +"@changesets/action": patch +--- + +use cwd param