Skip to content

Commit

Permalink
Fix the permissions for PRs opened by Changesets CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Dec 9, 2024
1 parent 7b09136 commit ae4254f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.CHANGESETS_TOKEN }}

- uses: ./.github/actions/setup

- name: Build packages
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit ae4254f

Please sign in to comment.