.npmrc-publish 1.2 KB

123456789101112131415161718192021
  1. # This config file is very similar to common/config/rush/.npmrc, except that .npmrc-publish
  2. # is used by the "rush publish" command, as publishing often involves different credentials
  3. # and registries than other operations.
  4. #
  5. # Before invoking the package manager, Rush will copy this file to "common/temp/publish-home/.npmrc"
  6. # and then temporarily map that folder as the "home directory" for the current user account.
  7. # This enables the same settings to apply for each project folder that gets published. The copied file
  8. # will omit any config lines that reference environment variables that are undefined in that session;
  9. # this avoids problems that would otherwise result due to a missing variable being replaced by
  10. # an empty string.
  11. #
  12. # * * * SECURITY WARNING * * *
  13. #
  14. # It is NOT recommended to store authentication tokens in a text file on a lab machine, because
  15. # other unrelated processes may be able to read the file. Also, the file may persist indefinitely,
  16. # for example if the machine loses power. A safer practice is to pass the token via an
  17. # environment variable, which can be referenced from .npmrc using ${} expansion. For example:
  18. #
  19. # //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
  20. #
  21. //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}