Merge pull request #195 from nickbeaulieu/update-readme-private-repos

Adds note to README for use with private repos
This commit is contained in:
Phil 2022-11-08 21:29:49 +01:00 committed by GitHub
commit 14842c1314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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