From 5a78c10e01f0a7d6f316e4f56cf742995fe61597 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Tue, 12 Jul 2022 18:46:22 +0200 Subject: [PATCH] fix: verion.trim is not function --- dist/utils/getGithubRelease.js | 2 +- src/utils/getGithubRelease.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/utils/getGithubRelease.js b/dist/utils/getGithubRelease.js index 993a8e8..ab86728 100644 --- a/dist/utils/getGithubRelease.js +++ b/dist/utils/getGithubRelease.js @@ -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', '') }; }; diff --git a/src/utils/getGithubRelease.ts b/src/utils/getGithubRelease.ts index d81d7d0..4c39abb 100644 --- a/src/utils/getGithubRelease.ts +++ b/src/utils/getGithubRelease.ts @@ -32,6 +32,6 @@ export default async(version: string, token: string): Promise => { 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', '') }; } \ No newline at end of file