1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-13 06:40:06 +02:00

chore: allow to publish without release

This commit is contained in:
Sérgio Ramos 2017-05-30 10:57:18 +01:00
parent cd3b394c1b
commit 82a667504a

View File

@ -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,