chore: have local and remote tag name the same

This commit is contained in:
Sérgio Ramos 2017-05-26 13:05:36 +01:00
parent 6f2eb3cbb1
commit ec482796a9
1 changed files with 6 additions and 5 deletions

View File

@ -15,6 +15,10 @@ const incs = {
patch: argv.dev
};
const type = ['production', 'staging', 'dev']
.filter(k => argv[k])
.reduce((t, name) => name, '');
const exec = (...args) => {
const cp = execa(...args);
@ -114,10 +118,6 @@ const tasks = new Listr(
{
title: 'Tag',
task: async () => {
const type = ['production', 'staging', 'dev']
.filter(k => argv[k])
.reduce((t, name) => name, '');
const lastTag = await execa.stdout('git', [
'describe',
'--tags',
@ -147,7 +147,8 @@ const tasks = new Listr(
},
{
title: 'Push',
task: () => exec('git', ['push', 'origin', `${pkg.name}@${pkg.version}`])
task: () =>
exec('git', ['push', 'origin', `${pkg.name}-${type}@${pkg.version}`])
}
],
{