Skip to content

Commit 187b23f

Browse files
committed
fix(git): release tag um bump for skip interface
1 parent 316575a commit 187b23f

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

src/commands/log.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const validateLog = (tag: GitNewTag, console: GeneriConsole) => {
2323
};
2424

2525
export const setup = (tag: GitNewTag, options: LogOptions) => {
26-
getGeneri().then(({ config, console }) => {
26+
getGeneri().then(async ({ config, console }) => {
2727
if (!tag) {
2828
console.error('Insert valid git tag.');
2929

@@ -78,7 +78,7 @@ export const setup = (tag: GitNewTag, options: LogOptions) => {
7878
if (config.version) {
7979
console.success(`${last} to ${next} (${tag.toUpperCase()})`);
8080

81-
setVersion(next, { console, config }, tag, prerelease);
81+
await setVersion(next, { console, config }, tag, prerelease);
8282
}
8383

8484
createChangelog(!config.version ? lastTag() : next, { config, console });

src/git.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const getTagCommit = (commit: Commit) => {
8888
return commit.refName.filter((ref) => ref.includes('tag'))[0].replace('tag: ', '');
8989
};
9090

91-
export const setVersion = (
91+
export const setVersion = async (
9292
target: string,
9393
{ config, console }: Root,
9494
tag: GitNewTag,
@@ -140,18 +140,20 @@ export const setVersion = (
140140
? workspace.packages
141141
: ['./packages/*/package.json'];
142142

143-
glob(['package.json', ...targets], {
143+
const packages = await glob(['package.json', ...targets], {
144144
expandDirectories: false,
145-
fs
146-
}).then(async (packages) => {
147-
await versionBump({
148-
files: packages,
149-
commit: false,
150-
push: false,
151-
tag: false,
152-
confirm: false,
153-
noVerify: true,
154-
});
145+
fs,
146+
});
147+
148+
await versionBump({
149+
files: packages,
150+
release: tag,
151+
commit: false,
152+
push: false,
153+
tag: false,
154+
confirm: false,
155+
noVerify: true,
156+
printCommits: false,
155157
});
156158
}
157159
};

0 commit comments

Comments
 (0)