From 30a5fa0cc89f4c796487897e804b6ab6f8f466b8 Mon Sep 17 00:00:00 2001 From: AndrewLeedham Date: Mon, 11 Jan 2021 12:54:19 +0000 Subject: [PATCH] fix npm plugin git tag splitting --- plugins/npm/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/npm/src/index.ts b/plugins/npm/src/index.ts index 722ea7499..de8dafb66 100644 --- a/plugins/npm/src/index.ts +++ b/plugins/npm/src/index.ts @@ -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