NPM
registry
Steps to publish this on Make sure you are login into npm
in npm cli
-
Create an organisation in
NPM
registry for exampleproject-abcd
-
change the name in
package.json
{
"name": "@com.xcodeclazz/k8s-common"
}
- Everytime you publish new release
git add .
git commit -am "changed something"
npm run pub
- Everywhere else where you are using this package
npm update @com.xcodeclazz/k8s-common --save
As Children Repository
- Go to parent repository
- Run
git add /common
- Run
git commit -am "any message"
- Run
git push origin branch
- Back to this repository
- Run
npm run pub