Skip to content

Commit 357dbec

Browse files
committed
[docs] Add 2FA requirements note before publishing Node.js modules
1 parent 33c780e commit 357dbec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/packages-and-modules/contributing-packages-to-the-registry/creating-node-js-modules.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ exports.printMsg = function() {
3636
## Test your module
3737

3838
1. Publish your package to npm:
39+
40+
<Note>
41+
42+
**Important:** Before you can publish, you must have either [two-factor authentication (2FA)][config-2fa] enabled on your account, or a [granular access token with bypass 2FA enabled][creating-token] for CI/CD workflows.
43+
44+
</Note>
45+
3946
- For [private packages][priv-pkg-pub] and [unscoped packages][unscoped-pkg-pub], use `npm publish`.
4047
- For [scoped public packages][scoped-pkg-pub], use `npm publish --access public`
4148

@@ -73,3 +80,5 @@ exports.printMsg = function() {
7380
[priv-pkg-pub]: creating-and-publishing-private-packages#publishing-private-packages
7481
[unscoped-pkg-pub]: creating-and-publishing-unscoped-public-packages#publishing-unscoped-public-packages
7582
[scoped-pkg-pub]: creating-and-publishing-scoped-public-packages#publishing-scoped-public-packages
83+
[config-2fa]: /configuring-two-factor-authentication
84+
[creating-token]: /creating-and-viewing-access-tokens

0 commit comments

Comments
 (0)