feat: create annotated tags

This commit is contained in:
Pierre Vanduynslager
2019-06-07 16:03:30 -04:00
parent 9948a74347
commit 4d581fc140
5 changed files with 18 additions and 11 deletions
+2 -2
View File
@@ -108,7 +108,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.gitTag, nextRelease.gitHead, {cwd, env});
await tag(nextRelease, {cwd, env});
await push(options.repositoryUrl, {cwd, env});
context.branch.tags.push({
version: nextRelease.version,
@@ -174,7 +174,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.gitTag, nextRelease.gitHead, {cwd, env});
await tag(nextRelease, {cwd, env});
await push(options.repositoryUrl, {cwd, env});
logger.success(`Created tag ${nextRelease.gitTag}`);
}