From 07d09fc6e79e6fae044a3a67040ae13c79dc7a17 Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Wed, 10 Mar 2021 12:32:16 +0100 Subject: [PATCH] docs(npm): do not use NPM_TOKEN with hostRules (#9048) Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> --- docs/usage/private-modules.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/usage/private-modules.md b/docs/usage/private-modules.md index 1a666a54e1..44d95db472 100644 --- a/docs/usage/private-modules.md +++ b/docs/usage/private-modules.md @@ -51,7 +51,7 @@ module.exports = { { hostType: 'npm', hostName: 'registry.npmjs.org', - token: process.env.NPM_TOKEN, + token: process.env.NPMJS_TOKEN, }, { hostType: 'npm', @@ -64,6 +64,8 @@ module.exports = { }; ``` +**NOTE:** Do not use `NPM_TOKEN` as an environment variable, it's incompatible with `hostRules` and will be deprecated soon. + ### Commit .npmrc file into repository One approach that many projects use for private repositories is to simply check in an authenticated `.npmrc` into the repository that is then shared between all developers. -- GitLab