Skip to content

Commit e4c41b8

Browse files
fix: temporarily disable branch protections for release-it (#113)
1 parent c62dc71 commit e4c41b8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/release.yml

+11
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ jobs:
1818
- env:
1919
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2020
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
21+
- name: Temporarily disable "include administrators" branch protection
22+
uses: benjefferies/[email protected]
23+
with:
24+
access_token: ${{ secrets.GITHUB_TOKEN }}
25+
branch: ${{ github.event.repository.default_branch }}
2126
- env:
2227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2328
run: pnpm release-it
29+
- name: Enable "include administrators" branch protection
30+
uses: benjefferies/[email protected]
31+
if: always()
32+
with:
33+
access_token: ${{ secrets.GITHUB_TOKEN }}
34+
branch: ${{ github.event.repository.default_branch }}

0 commit comments

Comments
 (0)