Skip to content

Commit

Permalink
Add NPM_TOKEN env variable (github secret) to example in docs (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 3, 2023
1 parent 415c1a3 commit 38193c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/ci.md
Expand Up @@ -39,7 +39,7 @@ Replace `[user]` and `[project]` with the actual values.
## GitHub Actions

To run release-it from a GitHub Action, here's an example job (fragment) to configure a Git user (to push the release
commit), and expose the `GITHUB_TOKEN` for the GitHub Release:
commit), and expose `NPM_TOKEN` for publishing to the npm registry and `GITHUB_TOKEN` for the GitHub Release:

```yaml
jobs:
Expand All @@ -56,6 +56,7 @@ jobs:
- run: npm install
- run: npm run release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

Expand Down

0 comments on commit 38193c3

Please sign in to comment.