Skip to content

Commit

Permalink
Merge pull request #1829 from intuit/save-me-from-me
Browse files Browse the repository at this point in the history
Add note about verifyAccess config
  • Loading branch information
hipstersmoothie committed Feb 24, 2021
2 parents e77a47c + a371732 commit 8b923fb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions plugins/npm/README.md
Expand Up @@ -50,6 +50,23 @@ No additional setup is required.
> Do you have a package in your monorepo you don't want to publish but still want versioned?
> Just set that `"private": true` you that package's `package.json`!
### Using automation tokens from NPM

If you have 2FA enabled and want to publish using an [automation token](https://github.blog/changelog/2020-10-02-npm-automation-tokens/) you _must_ add the following to your `lerna.json` for it to work.

```json
{
// ... other config here
"command": {
"publish": {
"verifyAccess": false
}
}
}
```

Lerna's verify access step hits an npm api endpoint that treats automation tokens differently than regular user tokens. Disabling it will bypass that failure. See [this lerna issue](https://github.com/lerna/lerna/issues/2788) for more context.

## Options

### setRcToken
Expand Down

0 comments on commit 8b923fb

Please sign in to comment.