https://github.com/tutv/my-publisher
Publish my packages to npmjs.org (including private packages)
https://github.com/tutv/my-publisher
cli node-package npm-publish
Last synced: 9 months ago
JSON representation
Publish my packages to npmjs.org (including private packages)
- Host: GitHub
- URL: https://github.com/tutv/my-publisher
- Owner: tutv
- Created: 2020-03-21T08:48:10.000Z (almost 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-27T02:12:34.000Z (almost 3 years ago)
- Last Synced: 2024-04-29T02:06:07.751Z (over 1 year ago)
- Topics: cli, node-package, npm-publish
- Language: JavaScript
- Homepage: https://npmjs.com/package/my-publisher
- Size: 64.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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-publisher
```
## Usage
```
$ publish -m "your message" --access public
$ publish --help
```
## What the cli do
- Checkout to `develop` branch
- Increase version in `package.json`
- Commit `package.json`
- Push to `origin develop`
- Merge `develop` into `master`
- 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
## Development
- 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
```
## License
This code is free to use under the terms of the MIT license.