Ensure clean master only when publishing package to npm

This commit is contained in:
Dominik Prokop 2019-03-05 21:18:26 +01:00
parent b816b4e259
commit 358f9cbeae

View File

@ -94,7 +94,10 @@ const ensureMasterBranch = async () => {
};
const releaseTaskRunner: TaskRunner<ReleaseTaskOptions> = async ({ publishToNpm }) => {
await ensureMasterBranch();
if (publishToNpm) {
await ensureMasterBranch();
}
await execTask(buildTask)();
let releaseConfirmed = false;