fix: verion.trim is not function

This commit is contained in:
xHyroM 2022-07-12 18:46:22 +02:00
parent 6dae544af4
commit 5a78c10e01
2 changed files with 2 additions and 2 deletions

View File

@ -17,6 +17,6 @@ export default async (version, token) => {
})).json();
return {
...release,
version: miscTestBuilds ? new Date(release.name).getTime() : release.tag_name.replace('bun-v', '')
version: miscTestBuilds ? `timestamp-v${new Date(release.name).getTime().toString()}` : release.tag_name.replace('bun-v', '')
};
};

View File

@ -32,6 +32,6 @@ export default async(version: string, token: string): Promise<Release> => {
return {
...release,
version: miscTestBuilds ? new Date(release.name).getTime() : release.tag_name.replace('bun-v', '')
version: miscTestBuilds ? `timestamp-v${new Date(release.name).getTime().toString()}` : release.tag_name.replace('bun-v', '')
};
}