From 91bf77c3fdb41255dfe1f16577e82496c26631c0 Mon Sep 17 00:00:00 2001 From: nedsalk Date: Sat, 9 Mar 2024 10:35:29 +0100 Subject: [PATCH 1/2] fix: changeset PR not running workflows --- .changeset/spotty-cheetahs-arrive.md | 2 ++ .github/workflows/release.yaml | 1 + 2 files changed, 3 insertions(+) create mode 100644 .changeset/spotty-cheetahs-arrive.md diff --git a/.changeset/spotty-cheetahs-arrive.md b/.changeset/spotty-cheetahs-arrive.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/spotty-cheetahs-arrive.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 52cd21fba2b..33232772790 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,6 +22,7 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} + persist-credentials: false - name: CI Setup uses: ./.github/actions/ci-setup From a1b20db31d209c0afdcb162d18aa5ff5b60d4bd3 Mon Sep 17 00:00:00 2001 From: nedsalk Date: Sat, 9 Mar 2024 11:01:35 +0100 Subject: [PATCH 2/2] docs: add reason for `persist-credentials: false` --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 33232772790..7dda52ba1bc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,6 +22,8 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} + # workaround to ensure force pushes to changeset branch use REPO_TOKEN owner's account + # see https://github.com/changesets/action/issues/70 persist-credentials: false - name: CI Setup