Create a .npmrc file for your project like this:
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
Then find your token inside the ~/.npmrc file in your home folder and set it as an NPM_TOKEN environment variable through netlify's admin UI.
| # EditorConfig is awesome: http://EditorConfig.org | |
| # top-most EditorConfig file | |
| root = true | |
| # Unix-style newlines with a newline ending every file | |
| [*] | |
| end_of_line = lf | |
| insert_final_newline = true |
| function decorate(tag, template) { | |
| customElements.define(tag, class extends HTMLElement { | |
| constructor() { | |
| super(); | |
| this.attachShadow({ mode: 'open' }); | |
| } | |
| connectedCallback() { | |
| let root = this.shadowRoot; | |
| if(!root.firstChild) { |
| // EmailInput wraps an HTML `input` and adds some app-specific styling. | |
| const EmailInput = React.forwardRef((props, ref) => ( | |
| <input ref={ref} {...props} type="email" className="AppEmailInput" /> | |
| )); | |
| class App extends Component { | |
| emailRef = React.createRef(); | |
| render() { | |
| return ( |