UNPKG

node-publisher

Version:

A configurable release automation tool inspired by create-react-app and Travis CI.

13 lines (10 loc) 276 B
const publish = ({ nextVersion, execCommand, preid }) => { const versionCommand = preid ? `npm version ${nextVersion} --preid=${preid}` : `npm version ${nextVersion}`; execCommand(versionCommand); execCommand('npm publish'); }; module.exports = { publish };