Skip to content

Commit eedd05c

Browse files
committed
[docs] Add 2FA requirements for publishing private packages
1 parent c9df896 commit eedd05c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

content/packages-and-modules/contributing-packages-to-the-registry/creating-and-publishing-private-packages.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ npm install my-package
8181

8282
By default, scoped packages are published with private visibility.
8383

84+
<Note>
85+
86+
**Important:** Before you can publish, you must have either:
87+
- [Two-factor authentication (2FA)][config-2fa] enabled on your account, OR
88+
- A [granular access token with bypass 2FA enabled][creating-token] (required for CI/CD workflows)
89+
90+
For more information, see "[Requiring 2FA for package publishing][requiring-2fa]."
91+
92+
</Note>
93+
8494
1. On the command line, navigate to the root directory of your package.
8595

8696
```
@@ -109,3 +119,6 @@ For more information on the `publish` command, see the [CLI documentation][cli-p
109119
[cli-publish]: /cli/publish
110120
[reg-config]: configuring-your-registry-settings-as-an-npm-enterprise-user#using-npmrc-to-manage-multiple-profiles-for-different-registries
111121
[pii]: https://en.wikipedia.org/wiki/Personally_identifiable_information
122+
[config-2fa]: /configuring-two-factor-authentication
123+
[creating-token]: /creating-and-viewing-access-tokens
124+
[requiring-2fa]: /requiring-2fa-for-package-publishing-and-settings-modification

0 commit comments

Comments
 (0)