Adds note to README for use with private repos

This commit is contained in:
Nick Beaulieu 2022-11-08 12:30:10 -05:00
parent a0355e07a5
commit b7ebd115c0
1 changed files with 14 additions and 0 deletions

View File

@ -11,6 +11,20 @@ you'll need to configured that workflow yourself. You can look to the
Make sure you use the `actions/checkout@v2` (or later) action!
**Private repos**
To use this Action with `${{ secrets.GITHUB_TOKEN }}` in a private repo, you must set the `contents: write` [permission for the token](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs) to write to the package.json file specified in the workflow.
```yml
# .github/workflows/[your_workflow].yml
jobs:
publish:
...
permissions:
contents: write
```
**Migration: Version v9 and up**
Remove the 'actions/setup-node@v1' step from your action.yml file