From bbab6a3e16db848b7f7a1a46d1edc4aff3c469ea Mon Sep 17 00:00:00 2001 From: "ilia.brauer" Date: Mon, 15 Apr 2024 17:27:46 +0200 Subject: [PATCH] [global] fixed method for create new prerelease tag --- tools/continuous-delivery/src/utils/gitUtils.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/continuous-delivery/src/utils/gitUtils.ts b/tools/continuous-delivery/src/utils/gitUtils.ts index b0eaa49107..a5e96c62f4 100644 --- a/tools/continuous-delivery/src/utils/gitUtils.ts +++ b/tools/continuous-delivery/src/utils/gitUtils.ts @@ -3,7 +3,6 @@ import { execSync } from 'child_process'; import { log, prerelaseSuffix } from '../utils'; import { VersionPatch } from '../makeVersionPatches'; import { NpmUtils } from './npmUtils'; -import {a} from "vitest/dist/suite-xGC-mxBC"; const git = Git(); @@ -103,7 +102,7 @@ export class GitUtils { await git.tag(['-f', tagName]); - return tag; + return tagName; } private static async pull(branch: string) { @@ -127,9 +126,12 @@ export class GitUtils { } private static async getTag(startStr: string): Promise { - const tag = execSync(`git describe --tags --abbrev=0 --match "${startStr}*" $(git rev-list --tags --max-count=1) `, { - encoding: 'utf-8', - }); + const tag = execSync( + `git describe --tags --abbrev=0 --match "${startStr}*" $(git rev-list --tags --max-count=1) `, + { + encoding: 'utf-8', + }, + ); return tag.trim(); }