Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit 5ded51e

Browse files
authored
Support for npm Private Modules (#96)
1 parent 63212a5 commit 5ded51e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.buildpacks

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
https://github.com/heroku/heroku-buildpack-nodejs.git
2-
https://github.com/mars/create-react-app-inner-buildpack.git#v3.0.0
2+
https://github.com/mars/create-react-app-inner-buildpack.git#v4.0.0
33
https://github.com/heroku/heroku-buildpack-static.git

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Deploy React.js web apps generated with [create-react-app](https://github.com/fa
2727
* [Compile-time config](#user-content-compile-time-configuration)
2828
* [Runtime config](#user-content-runtime-configuration)
2929
* [using an Add-on's config](#user-content-add-on-config-vars)
30+
* [npm Private Packages](#user-content-npm-private-packages)
3031
* 🕵️ [Troubleshooting](#user-content-troubleshooting)
3132
* 📍 [Version compatibility](#user-content-version-compatibility)
3233
* 🏙 [Architecture](#user-content-architecture-)
@@ -393,6 +394,17 @@ For example, to use the API key for the [Filestack](https://elements.heroku.com/
393394
export REACT_APP_FILEPICKER_API_KEY=${FILEPICKER_API_KEY:-}
394395
```
395396

397+
npm Private Packages
398+
-------------------
399+
Private modules are supported during build.
400+
401+
1. Setup your app with a `.npmrc` file following [npm's guide for CI/deployment](https://docs.npmjs.com/private-modules/ci-server-config).
402+
1. Set your secret in the `NPM_TOKEN` config var:
403+
404+
```bash
405+
heroku config:set NPM_TOKEN=xxxxx
406+
```
407+
396408
Troubleshooting
397409
---------------
398410

0 commit comments

Comments
 (0)