Skip to content

Commit

Permalink
fix: fetch git tags before searching for latest (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Feb 4, 2021
1 parent bec7808 commit 8d7e0ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ abstract class Repository extends AsyncOptionalCreatable {
const skippableCommitTypes = ['chore', 'style', 'docs', 'ci', 'test'];

// find the latest git tag so that we can get all the commits that have happened since
const tags = this.execCommand('git tag', true).stdout.split(os.EOL);
const tags = this.execCommand('git fetch --tags && git tag', true).stdout.split(os.EOL);
const latestTag = lerna
? tags.find((tag) => tag.includes(`${pkg.name}@${pkg.npmPackage.version}`)) || ''
: tags.find((tag) => tag.includes(pkg.npmPackage.version));
Expand Down

0 comments on commit 8d7e0ec

Please sign in to comment.