revert: feat: create annotated tags

This reverts commit 4d581fc140.
This commit is contained in:
Pierre Vanduynslager
2019-09-13 14:46:47 -04:00
parent d120eaea8b
commit 0629f3cd8a
5 changed files with 11 additions and 18 deletions
+2 -2
View File
@@ -106,7 +106,7 @@ async function run(context, plugins) {
nextRelease.notes = await plugins.generateNotes({...context, commits, lastRelease, nextRelease});
logger.log('Create tag %s', nextRelease.gitTag);
await tag(nextRelease, {cwd, env});
await tag(nextRelease.gitTag, nextRelease.gitHead, {cwd, env});
await push(options.repositoryUrl, {cwd, env});
context.branch.tags.push({
version: nextRelease.version,
@@ -170,7 +170,7 @@ async function run(context, plugins) {
logger.warn(`Skip ${nextRelease.gitTag} tag creation in dry-run mode`);
} else {
// Create the tag before calling the publish plugins as some require the tag to exists
await tag(nextRelease, {cwd, env});
await tag(nextRelease.gitTag, nextRelease.gitHead, {cwd, env});
await push(options.repositoryUrl, {cwd, env});
logger.success(`Created tag ${nextRelease.gitTag}`);
}