0.0.7 • Published 2 years ago
editor1234 v0.0.7
Publish Packages
We will configure Github Action to publish to npmjs packages use them as dependencies in an npm project.
Registry
Developer will create there own accounts with organization based email and password, these will used in local to give access to this repo package.
- url: https://www.npmjs.com
- username: xxxx
- email: xxxx
- password: ****
Publishing a package
We are going to use multiple private packages based on environment branches.
- Compile
npm run build:development
. - Authenticating by logging in to npm in local terminal
npm login
. - Publish
npm publish
. - Show package
npm show @ovrture/react-redux
.
Environment Rules
We will follow below concept
Enviroment Name | Branch Name | Version Pattern |
---|---|---|
Sandbox | sand | |
Developement | dev | |
Testing | test | |
Staging | stag | |
Production | prod |