mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-23 06:11:06 +03:00
chore(Release): remove commit hash from version
This commit is contained in:
1 parent
116ee92eab
commit
23b853415f
1 file changed
+1
-2
+1
-2
@@ -8,10 +8,9 @@ $.verbose = false;
|
|||||||
const isDryRun = argv['dry-run'] ?? false;
|
const isDryRun = argv['dry-run'] ?? false;
|
||||||
|
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const currentShortSha = (await $`git rev-parse --short HEAD`).stdout.trim();
|
|
||||||
|
|
||||||
const calver = now.toISOString().slice(0, 10).replace(/-/g, '.');
|
const calver = now.toISOString().slice(0, 10).replace(/-/g, '.');
|
||||||
const version = `${calver}-${currentShortSha}`;
|
const version = `${calver}`;
|
||||||
|
|
||||||
const { stdout: rawCommits } = await $`git log --pretty=oneline $(git describe --tags --abbrev=0)..HEAD`;
|
const { stdout: rawCommits } = await $`git log --pretty=oneline $(git describe --tags --abbrev=0)..HEAD`;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user