A command tool to publish my packages on npmjs.org (including private packages).
- Every day, I spend too much time to publish packages to npmjs.org.
$ npm install -g my-publisher
$ publish -m "your message" --access public
$ publish --help
- Checkout to
develop
branch - Increase version in
package.json
- Commit
package.json
- Push to
origin develop
- Merge
develop
intomaster
- Create a tag with format release/vx.y.z from master
- Check
.npmrc
and hide.npmrc
if needed - Run
npm publish
with global.npmrc
file (from~/.npmrc
) - Checkout to
develop
again
- Create develop environment: create
dev.env
with content:
CURRENT_DIR=/your-dir/my-publisher-example
ACCESS=public
- Install dependency packages:
npm install
- Run script:
npm run dev
This code is free to use under the terms of the MIT license.