"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.npmPublish = void 0;
const helpers_1 = require("../helpers");
exports.npmPublish = (branch) => {
    if (branch === "master") {
        console.log("On branch master. Publishing to npm...");
        helpers_1.exec("npm publish");
    }
    else if (branch.match(/^release\/.+$/)) {
        console.log("On release branch. Publishing with beta tag...");
        helpers_1.exec("npm publish --tag beta");
    }
    else {
        console.log(`Current branch (${branch}) is neither 'release/*' nor 'master'. Not publishing...`);
    }
    console.log(`Successfully published to npm`);
};
//# sourceMappingURL=npmPublish.js.map