Skip to content

Commit 87d14fd

Browse files
committed
fix: use GH_TOKEN (PAT) to bypass branch protection rules
1 parent d58d662 commit 87d14fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21-
persist-credentials: false
21+
token: ${{ secrets.GH_TOKEN }}
22+
persist-credentials: true
2223

2324
- uses: pnpm/action-setup@v4
2425
with:
@@ -39,7 +40,8 @@ jobs:
3940
- name: Release
4041
id: release
4142
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
44+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4345
run: npx semantic-release
4446

4547
- name: Publish to npm

0 commit comments

Comments
 (0)