From 82a667504a34d260c7f69e257fde9904ddc916d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Tue, 30 May 2017 10:57:18 +0100 Subject: [PATCH] chore: allow to publish without release --- scripts/publish | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/publish b/scripts/publish index 62f6e720..bcde8924 100755 --- a/scripts/publish +++ b/scripts/publish @@ -169,7 +169,7 @@ const tasks = [ task: [ { filter: ({ published }) => !published, - task: async ({ published, prefix }) => + task: async ({ prefix }) => inquirer.prompt([ { name: 'release', @@ -179,6 +179,18 @@ const tasks = [ } ]) }, + { + filter: ({ published }) => published, + task: async ({ prefix }) => + inquirer.prompt([ + { + name: 'release', + type: 'confirm', + default: false, + message: `${prefix}Want to cut a release?` + } + ]) + }, { title: 'Type', filter: ({ release }) => release,