⛰️
Application Platform
  • Treetracker Tech Stack
  • Best Practices
  • Team Vision
  • DevOps Notes
    • Rollback Procedures
    • Troubleshooting
    • CI-CD
  • Roadmap 2
  • RabbitMQ
  • Airflow
  • CKAN
    • CKAN
    • Cloud Settings
  • DevOps
    • Github Actions To Do
    • Alerting To Do
    • Check and recover
      • Check script
      • Check database
      • How to backup postgresql
  • Keycloak
    • Keycloak
    • How to set up Keycloak to allow login by Social Media
Powered by GitBook
On this page
  • semantic-release
  • semantic-release breaks when branch protection is applied

Was this helpful?

  1. DevOps Notes

Troubleshooting

PreviousRollback ProceduresNextCI-CD

Last updated 3 years ago

Was this helpful?

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:

Two things I needed to change to make treetracker-admin-client work were:

  1. Pass persist-credentials: false to actions/checkout@v2 as a with: value

  2. Create a personal access token and assign it to a repo secret named GH_TOKEN that is passed to the semantic-release env.

https://github.com/semantic-release/github/issues/175#issuecomment-757448750