Troubleshooting
semantic-release
semantic-release breaks when branch protection is applied
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.
This can be fixed by following these instructions: https://github.com/semantic-release/github/issues/175#issuecomment-757448750
Two things I needed to change to make treetracker-admin-client work were:
Pass
persist-credentials: false
toactions/checkout@v2
as awith:
valueCreate a personal access token and assign it to a repo secret named
GH_TOKEN
that is passed to the semantic-release env.
Last updated