From ae4254fc570ba41009b9c5a876311bf5760327ab Mon Sep 17 00:00:00 2001 From: Charlie Brown Date: Mon, 9 Dec 2024 14:09:19 -0600 Subject: [PATCH] Fix the permissions for PRs opened by Changesets CLI --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b25850a0..4b63d779b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.CHANGESETS_TOKEN }} + - uses: ./.github/actions/setup - name: Build packages @@ -31,7 +34,7 @@ jobs: version: pnpm run version publish: pnpm run publish env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Note: We run a custom release notes script so we can generate a single aggregate @@ -41,4 +44,4 @@ jobs: if: steps.changesets.outputs.published == 'true' run: npm run release-notes env: - GITHUB_TOKEN: ${{ secrets.CHANGESETS_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}