Skip to content

Commit

Permalink
fix(script): release script pushes tags
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Apr 4, 2018
1 parent 6ecbe03 commit d23108a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,17 @@ function publishGitTag(tasks, version) {
const tag = `v${version}`;

tasks.push(
{
{
title: `Tag latest commit ${chalk.dim(`(${tag})`)}`,
task: () => execa('git', ['tag', `${tag}`], { cwd: common.rootDir })
},
{
title: 'Push tag to Github',
task: () => execa('git', ['push', '--follow-tags'], { cwd: common.rootDir })
title: 'Push branches to Github',
task: () => execa('git', ['push'], { cwd: common.rootDir })
},
{
title: 'Push tags to Github',
task: () => execa('git', ['push', '--tags'], { cwd: common.rootDir })
}
);
}
Expand Down

0 comments on commit d23108a

Please sign in to comment.