Skip to content

Commit 0df37b1

Browse files
committed
Configure npm registry for publishing
1 parent 9086ac2 commit 0df37b1

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
registry=https://registry.npmjs.org/
2+
@zigurous:registry=https://npm.pkg.github.com
3+
//npm.pkg.github.com/:_authToken=5c7f1c60c89f0b7b6f82c17e51ab827578779d07

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"@zigurous:registry" "https://npm.pkg.github.com"

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# @zigurous/react-components
22

3-
> Made with create-react-library
4-
5-
[![NPM](https://img.shields.io/npm/v/@zigurous/react-components.svg)](https://www.npmjs.com/package/@zigurous/react-components) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6-
7-
## Install
3+
## Installation
84

5+
```bash
6+
npm install @zigurous/react-components
7+
```
98
```bash
109
yarn add @zigurous/react-components
1110
```

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"main": "dist/index.js",
77
"module": "dist/index.modern.js",
88
"unpkg": "dist/index.umd.js",
9-
"private": true,
109
"engines": {
1110
"node": ">=10"
1211
},
@@ -59,6 +58,9 @@
5958
"lint:fix": "eslint --fix src/**/*.{js,jsx,ts,tsx}",
6059
"encode-logos": "node scripts/encode-logos.js"
6160
},
61+
"publishConfig": {
62+
"registry": "https://npm.pkg.github.com"
63+
},
6264
"eslintConfig": {
6365
"extends": [
6466
"react-app",

0 commit comments

Comments
 (0)