Skip to content

Commit

Permalink
Fixed wrong type in params in tag creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanaye committed Feb 1, 2017
1 parent ec809e0 commit 878093b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/tasks/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ module.exports = function (grunt) {
return repository.createCommit('HEAD', author, author, '[ci skip] Build Version ' + version, oid, [parent]);
}).then(function (id) {
grunt.log.writeln('Created commit ' + id + 'for ' + version);
return Git.Tag.create(repository, version, id, author, 'Release v'+version, 0); // 0 = don't force tag creation
return Git.Object.lookup(repository, id, Git.Object.TYPE.COMMIT);
})
.then(function (object) {
return Git.Tag.create(repository, version, object, author, 'Release v'+version, 0); // 0 = don't force tag creation
}).then(function () {
grunt.log.writeln('Created tag ' + version);
return repository.getRemote('origin');
Expand Down

0 comments on commit 878093b

Please sign in to comment.