Skip to content

Commit 7e13a38

Browse files
Merge pull request #55 from technote-space/feature/#52
feat: dump version (#52)
2 parents 688c90f + 1db26ca commit 7e13a38

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

__tests__/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ describe('execute', () => {
301301
' >> v1',
302302
' >> v1.2.3',
303303
' >> 1.2',
304+
'> version: v1.2.4',
304305
'[command]rm -rdf <Build Directory> <Push Directory>',
305306
'::group::Fetching...',
306307
'[command]git init \'.\'',

src/misc.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export const getContextArgs = async(helper: GitHelper, tagName: string | undefin
2828
throw new Error('<tag> is required.');
2929
}
3030

31-
return {...config, tagName: config.inputs.TEST_TAG_PREFIX + await helper.getNewPatchVersion(dir), branch};
31+
const version = await helper.getNewPatchVersion(dir);
32+
(new Logger()).info('version: %s', version);
33+
return {...config, tagName: config.inputs.TEST_TAG_PREFIX + version, branch};
3234
}
3335

3436
return {...config, tagName, branch};

0 commit comments

Comments
 (0)