- Nexus3: http://home-server.silk-cat.software:9701/
- Private NPM Registry: http://home-server.silk-cat.software:9701/repository/npm-hosted/
username = commonuser
password = 123123123
Use the above credentials and run the bellow command
npm adduser --registry http://home-server.silk-cat.software:9701/repository/npm-hosted/
Create a new directory
mkdir nexus3
cd nexus3
npm init
npm --registry http://home-server.silk-cat.software:9701/repository/npm-hosted/ install yourname
Then create new file named main.js
(or arbitary name you want), with this content:
let {yourname} = require('yourname');
// execute function
yourname();
And run: node main.js
npm publish
- Write Jenkins file in source code
- Setup jenkins
- Config jenkins to build and publish package to nexus3 New item --> pipeline --> config git, credential
- Config webhook in github