# npm

# 切换源

npm config set registry https://registry.npm.taobao.org
npm config set registry http://www.npmjs.org

# 发布包

npm init
# 要是在官方源的基础上
npm login
# 第一次发组织下的私有包
npm publish --access public
# 正常发包
npm publish

# release-it

yarn add @release-it/conventional-changelog release-it -D

手动更改 package.json

{
    // 注意去掉"private": true,
    "repository": {
        "type": "git",
        "url": "https://github.com/hjfruit/react-native-xiaoshu"
    },
    "bugs": {
        "url": "https://github.com/hjfruit/react-native-xiaoshu/issues"
    },
    "publishConfig": {
        "registry": "https://registry.npmjs.org/"
    },
    "scripts": {
        "release": "release-it"
    },
}
lastUpdate: 12/14/2021, 1:19:10 AM