Skip to content

Commit 2c17503

Browse files
authored
fix: Use custom GitHub token to bypass branch protection (#565)
1 parent ec4fa27 commit 2c17503

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v2
13+
with:
14+
# This ensures our custom `GITHUB_TOKEN` is used by `semantic-release`
15+
# instead of the default credentials. This is important for bypassing
16+
# the branch protection rules that are configured for master.
17+
# see https://github.com/semantic-release/semantic-release/blob/8fda7fd423d24e7b425fbee83790f49dd0478e2d/docs/recipes/ci-configurations/github-actions.md#pushing-packagejson-changes-to-a-master-branch
18+
persist-credentials: false
1319
- name: Setup Node.js
1420
uses: actions/setup-node@v2
1521
with:

0 commit comments

Comments
 (0)