Skip to content

Commit

Permalink
fix(publish): fix return type of publish
Browse files Browse the repository at this point in the history
  • Loading branch information
cmurczek-it committed Jun 5, 2018
1 parent 61a1885 commit b589d33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/publish/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export async function publish(pluginConfig: SemanticReleaseConfig, context: Sema
})
.then((response) => {
if (response.ok) {
return true;
return {
publishedTag: context.nextRelease!.gitTag,
};
} else {
throw new Error(`Error HTTP${response.status} ${response.statusText}`);
}
Expand Down

0 comments on commit b589d33

Please sign in to comment.