"private": true, => 제거
"name": "@[유저이름 or Organization 이름]/[패키지 이름]"
ex)
"name": "@makedelta/app-ui"
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"description": "",
"repository": {
"type": "git",
"url": "git+https://github.com/userOrOrganization/projectRepository.git"
},
"author": "",
"license": "ISC",
$ npm login --scope=@OWNER --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: TOKEN
> Email: PUBLIC-EMAIL-ADDRESS
ex) npm login --scope=@makedelta --registry=https://npm.pkg.github.com
> Username: wglee0511
> Password: (위 깃헙 계정 토큰)
> Email: qwe@asddf.com
npm publish
npm install --registry https://npm.pkg.github.com @[scope name]/[package name]
ex)
npm install --registry https://npm.pkg.github.com @makedelta/app-ui
//npm.pkg.github.com/:_authToken={NPM_TOKEN}
@scope:registry=https://npm.pkg.github.com
vi ~/.zshrc
export NPM_TOKEN="토큰"
npm install @[scope name]/[package name]
ex)
npm install @makedelta/app-ui