makefile.js
function release(type) {
    target.test();

    echo("Generating new version");
    const newVersion = execSilent("npm version " + type).trim();

    target.changelog();

    // add changelog to commit
    exec("git add CHANGELOG.md");
    exec("git commit --amend --no-edit");

    // replace existing tag
    exec("git tag -f " + newVersion);

    // push all the things
    echo("Publishing to git");
    exec("git push origin master --tags");

    echo("Publishing to npm");
    exec("npm publish");
}
function release(type) {
    target.test();

    echo("Generating new version");
    const newVersion = execSilent("npm version " + type).trim();

    target.changelog();

    // add changelog to commit
    exec("git add CHANGELOG.md");
    exec("git commit --amend --no-edit");

    // replace existing tag
    exec("git tag -f " + newVersion);

    // push all the things
    echo("Publishing to git");
    exec("git push origin master --tags");

    echo("Publishing to npm");
    exec("npm publish");
}
function release ( type ) { target . test ( ) ; echo ( "Generating new version" ) ; const newVersion = execSilent ( "npm version " + type ) . trim ( ) ; target . changelog ( ) ; // add changelog to commit exec ( "git add CHANGELOG.md" ) ; exec ( "git commit --amend --no-edit" ) ; // replace existing tag exec ( "git tag -f " + newVersion ) ; // push all the things echo ( "Publishing to git" ) ; exec ( "git push origin master --tags" ) ; echo ( "Publishing to npm" ) ; exec ( "npm publish" ) ; }
Create a release version, push tags and publish.

@private
@param {String} type - type of release to do (patch, minor, major)
@returns {void}
Create a release version push tags and publish .