chore: add type to published tag names

This commit is contained in:
Sérgio Ramos 2017-05-26 13:01:29 +01:00
parent 33239dc2f6
commit 6f2eb3cbb1

View File

@ -114,6 +114,10 @@ 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',
@ -135,7 +139,7 @@ const tasks = new Listr(
return exec('git', [
'tag',
'-a',
`${pkg.name}@${pkg.version}`,
`${pkg.name}-${type}@${pkg.version}`,
'-m',
`${EOL}${pkg.name}@${pkg.version}${EOL}${msg}`
]);