Skip to content

Commit

Permalink
[global] fixed method for create new prerelease tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyabrower committed Apr 15, 2024
1 parent 64f43c5 commit bbab6a3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tools/continuous-delivery/src/utils/gitUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -103,7 +102,7 @@ export class GitUtils {

await git.tag(['-f', tagName]);

return tag;
return tagName;
}

private static async pull(branch: string) {
Expand All @@ -127,9 +126,12 @@ export class GitUtils {
}

private static async getTag(startStr: string): Promise<string | null> {
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();
}
Expand Down

0 comments on commit bbab6a3

Please sign in to comment.