We will configure Github Action to publish to npmjs packages use them as dependencies in an npm project.
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: ****
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-tenant-lib
.
We will follow below concept
Enviroment Name | Branch Name | Version Pattern |
---|---|---|
Sandbox | sand | |
Developement | dev | |
Testing | test | |
Staging | stag | |
Production | prod |