Mejuri components library
"@mejuri-inc/mejuri-components": "git+ssh://[email protected]:mejuri-inc/mejuri-components.git#{branch-name}"
Create .yarnrc file in the root of your project with the content below:
"@mejuri-inc:registry" "https://npm.pkg.github.com"
Login to registry using with your own github token. See https://help.github.com/es/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#
yarn install
to link this library in local we found the best alternative is to use https://github.com/whitecolor/yalc
npm install -g yalc
In this repository folder run:
yalc publish
In the repository requiring this library as dependency run:
yalc link @mejuri-inc/mejuri-components
When developing, if you made changes to the mejuri-components
repo, run:
npm run publish:local
it will automatically update the dependency
In case you are not logged:
$ npm login --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: TOKEN
> Email: PUBLIC-EMAIL-ADDRESS
Update version number in package.json and then run:
npm publish
npm run deploy