1.3.6 • Published 5 years ago
my-publisher v1.3.6
my-publisher
A command tool to publish my packages on npmjs.org (including private packages).
Motivation
- Every day, I spend too much time to publish packages to npmjs.org.
Installation
$ npm install -g my-publisherUsage
$ publish -m "your message" --access public
$ publish --helpWhat the cli do
- Checkout to
developbranch - Increase version in
package.json - Commit
package.json - Push to
origin develop - Merge
developintomaster - Create a tag with format release/vx.y.z from master
- Check
.npmrcand hide.npmrcif needed - Run
npm publishwith global.npmrcfile (from~/.npmrc) - Checkout to
developagain
Development
- Create develop environment: create
dev.envwith content:
CURRENT_DIR=/your-dir/my-publisher-example
ACCESS=public- Install dependency packages:
npm install- Run script:
npm run devLicense
This code is free to use under the terms of the MIT license.