- Make sure the version key in
package.json
matches your release verison eg:"version": "5.7.0"
- Set NEXUS_USERNAME and NEXUS_PASSWORD as env variables in the terminal like below or add it in bashrc file.
export NEXUS_USERNAME=username
export NEXUS_PASSWORD=password
- run
npm run deploy-to-nexus
in terminal - To customize any more please check
build.js
anddeploy.js
files
Here build.js
file will find the files for artifacts (here in dist folder) and convert it into zip
deploy.js
file will deploy the same zip to nexus based on the values given in that file like groupid,artificat id etc