Install: https://www.jdeploy.com/~monflabs-devtoolbox-salesforce
Publish:
1- Update the version number in package.json.
2- Maven build.
3- Build and deploy package.
Note: 2FA write has to be disabled in the NPM account.
npm login
npx jdeploy publish
Old method, doesn't work (see: https://github.com/shannah/jdeploy/issues/153).
npx jdeploy package
npm publish