Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Attempting to fix #15: No release body on initial publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Walter committed Jul 18, 2019
1 parent 3f35160 commit 482901e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ const release = async ({ $package, ...config }) => {
// version commit is created.
let releaseBody = ''
try {
const { description, markdown } = await commits(oldTag)
const start = oldTag === 'v0.0.0' ? undefined : oldTag
const { description, markdown } = await commits(start)
if (!config.isVersionZero) {
releaseBody += `${description.replace('HEAD', newTag)}:\n\n`
}
Expand Down

0 comments on commit 482901e

Please sign in to comment.