Skip to content

Commit 72f5247

Browse files
committed
Repo: _createReleaseBranch() must be async
generateArtifacts() can be async, so _createReleaseBranch() must be async.
1 parent bc94a26 commit 72f5247

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/repo.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Release.define({
148148
console.log( "After the release, the version will be " + Release.nextVersion.cyan + "." );
149149
},
150150

151-
_createReleaseBranch: function() {
151+
_createReleaseBranch: function( fn ) {
152152
var json;
153153

154154
Release.chdir( Release.dir.repo );
@@ -167,7 +167,10 @@ Release.define({
167167
});
168168
Release.writePackage( json );
169169

170-
Release.generateArtifacts( Release._createTag );
170+
Release.generateArtifacts(function( paths ) {
171+
Release._createTag( paths );
172+
fn();
173+
});
171174
},
172175

173176
_createTag: function( paths ) {

0 commit comments

Comments
 (0)