Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

publish

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

publish

npm auto publishing of your modules

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
91K
increased by1.03%
Maintainers
1
Weekly downloads
 
Created
Source

publish

Build Status

npm module to automate publishing of npm modules Useful when you want to publish every time you bump the version in your module as part of your continuos integration setup.

When running publish in your module:

  • if your module is not yet in the registry then publish will do nothing (you need to publish manually the first version of your module)
  • if your module has the same version, or lower version than the version in the registry then publish will do nothing
  • if your module has bigger version than the version in the registry then publish will perform a 'npm publish' of your module

Installation

npm install publish

Usage

The most common way of using publish is to have it as a posttest script in your package.json:

"scripts": {
  "test": "tap test/*.js", // tap as an example
  "posttest": "publish"
}

which means that on successful test run, publish will try to 'npm publish' your module.

See publish owns package.json for an example of usage

License

MIT

Keywords

FAQs

Package last updated on 20 Jul 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc