I noticed a “new step” to start with DS and it seems that you haven’t talk about it anywhere.
So I thought it might interest you.
When I clone your DS Template on my GitHub, I add the NPM token in Actions. Easy.
If we only do this, we will have an error when pushing to NPM. GitHub Actions is not permitted to create or approve pull requests.
In order to make it work, we need to go to Repo Settings/Actions/General/Workflow Permissions and check “Read and write permissions” and “Allow Github Actions to create and approve pull requests”
Before (by default):
After:
Then the Action work perfectly !
There is no documentation about this extra step so I thought it was useful to submit a new issue.
That's it !
I noticed a “new step” to start with DS and it seems that you haven’t talk about it anywhere. So I thought it might interest you.
When I clone your DS Template on my GitHub, I add the NPM token in Actions. Easy. If we only do this, we will have an error when pushing to NPM. GitHub Actions is not permitted to create or approve pull requests.
In order to make it work, we need to go to Repo Settings/Actions/General/Workflow Permissions and check “Read and write permissions” and “Allow Github Actions to create and approve pull requests”
Before (by default):
After:
Then the Action work perfectly !
There is no documentation about this extra step so I thought it was useful to submit a new issue. That's it !
Trully love your work ! Have a great day !