chore: add type to published tag names
This commit is contained in:
parent
33239dc2f6
commit
6f2eb3cbb1
@ -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}`
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user