mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
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',
|
title: 'Tag',
|
||||||
task: async () => {
|
task: async () => {
|
||||||
|
const type = ['production', 'staging', 'dev']
|
||||||
|
.filter(k => argv[k])
|
||||||
|
.reduce((t, name) => name, '');
|
||||||
|
|
||||||
const lastTag = await execa.stdout('git', [
|
const lastTag = await execa.stdout('git', [
|
||||||
'describe',
|
'describe',
|
||||||
'--tags',
|
'--tags',
|
||||||
@ -135,7 +139,7 @@ const tasks = new Listr(
|
|||||||
return exec('git', [
|
return exec('git', [
|
||||||
'tag',
|
'tag',
|
||||||
'-a',
|
'-a',
|
||||||
`${pkg.name}@${pkg.version}`,
|
`${pkg.name}-${type}@${pkg.version}`,
|
||||||
'-m',
|
'-m',
|
||||||
`${EOL}${pkg.name}@${pkg.version}${EOL}${msg}`
|
`${EOL}${pkg.name}@${pkg.version}${EOL}${msg}`
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user