Skip to content

Commit cb9376f

Browse files
rose-mgribnoysup
andauthored
chore(build): fix detection of unpushed tags (#676)
Co-authored-by: Sergey <[email protected]>
1 parent 0cd36f1 commit cb9376f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/build/src/local/repository-status.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function getRepositoryStatus(
5252

5353
const result: RepositoryStatus = {
5454
clean: true,
55-
hasUnpushedTags: (tagStatus.stdout?.trim() ?? '' + tagStatus.stderr?.trim() ?? '') !== 'Everything up-to-date'
55+
hasUnpushedTags: `${tagStatus.stdout?.trim() ?? ''}${tagStatus.stderr?.trim() ?? ''}` !== 'Everything up-to-date'
5656
};
5757

5858
const output = gitStatus.stdout
@@ -95,4 +95,3 @@ export function getReleaseVersionFromBranch(branchName: string | undefined): { m
9595
patch: numOrUndefiend(versionParts[2]),
9696
};
9797
}
98-

0 commit comments

Comments
 (0)