Skip to content

Commit 8b59a5c

Browse files
fix: add pull-requests write permission for changeset action
1 parent 332d60a commit 8b59a5c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ permissions:
88
contents: write
99
pages: write
1010
id-token: write
11+
pull-requests: write
1112

1213
concurrency: ${{ github.workflow }}-${{ github.ref }}
1314

@@ -36,6 +37,11 @@ jobs:
3637
- name: Build packages
3738
run: npm run build
3839

40+
- name: Verify GitHub token permissions
41+
run: |
42+
echo "Checking GitHub token permissions..."
43+
gh auth status || echo "GitHub CLI not available, using GITHUB_TOKEN"
44+
3945
- name: Create Release Pull Request or Publish to npm
4046
id: changesets
4147
uses: changesets/action@v1
@@ -45,6 +51,8 @@ jobs:
4551
commit: "chore: release packages"
4652
title: "chore: release packages"
4753
create-release: github
54+
add-changesets: true
55+
auto-approve: false
4856
env:
4957
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5058
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)