From 6f2eb3cbb15f3e9835ffa6cd751f50d443fbd677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 26 May 2017 13:01:29 +0100 Subject: [PATCH] chore: add type to published tag names --- scripts/publish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/publish b/scripts/publish index 925c9b85..f4aa67f7 100755 --- a/scripts/publish +++ b/scripts/publish @@ -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}` ]);