I'm a Software Engineer full-time and Fullstack Developer part-time. I build websites using React for people's small businesses or portfolios and optimize development by creating CI/CD pipelines.
It looks like the permissions error where it's not allowing Github Actions to write to your branch. If you already tried using a Personal Access Token instead of the Github Token, can you also check that in your Settings -> Actions -> General -> Workflow permissions, and make sure 'read and write permissions' is selected
Also you can try adding this to the publish.yaml file:
permissions:
contents: write
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It looks like the permissions error where it's not allowing Github Actions to write to your branch. If you already tried using a Personal Access Token instead of the Github Token, can you also check that in your Settings -> Actions -> General -> Workflow permissions, and make sure 'read and write permissions' is selected

Also you can try adding this to the
publish.yamlfile: