mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-04-04 02:30:10 +08:00
fix: verion.trim is not function
This commit is contained in:
parent
6dae544af4
commit
5a78c10e01
2
dist/utils/getGithubRelease.js
vendored
2
dist/utils/getGithubRelease.js
vendored
@ -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', '')
|
||||
};
|
||||
};
|
||||
|
@ -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', '')
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user