Applying branch protection to the main or master branch can break semantic-release in our auto-release GitHub workflows by preventing the library from pushing changes to the protected branch.
main
master
This can be fixed by following these instructions: https://github.com/semantic-release/github/issues/175#issuecomment-757448750arrow-up-right
Two things I needed to change to make treetracker-admin-client work were:
Pass persist-credentials: false to actions/checkout@v2 as a with: value
persist-credentials: false
actions/checkout@v2
with:
Create a personal access token and assign it to a repo secret named GH_TOKEN that is passed to the semantic-release env.
GH_TOKEN
Last updated 4 years ago
Was this helpful?