Skip to content

Commit

Permalink
Add note about verifyAccess config
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Feb 24, 2021
1 parent e77a47c commit a371732
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions plugins/npm/README.md
Original file line number Diff line number Diff line change
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 a371732

Please sign in to comment.