Skip to content

Commit

Permalink
fix npm plugin git tag splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLeedham committed Jan 11, 2021
1 parent ed7ec60 commit 30a5fa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/npm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,9 @@ export default class NPMPlugin implements IPlugin {

const tags = (
await execPromise("git", ["tag", "--points-at", "HEAD"])
).split("\n");
)
.split("\n")
.filter((tag) => tag.trim() !== "");

if (!this.commitNextVersion) {
// we do not want to commit the next version. this causes
Expand Down

0 comments on commit 30a5fa0

Please sign in to comment.