mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
feat: clean version
This commit is contained in:
parent
705032ffe3
commit
ad6ee5950c
4 changed files with 14 additions and 18 deletions
|
@ -9,7 +9,8 @@ export interface Release {
|
|||
html_url: string;
|
||||
tag_name: string;
|
||||
message?: string;
|
||||
assets: Asset[]
|
||||
assets: Asset[];
|
||||
version: string;
|
||||
}
|
||||
|
||||
export default async(version: string, token: string): Promise<Release> => {
|
||||
|
@ -25,5 +26,8 @@ export default async(version: string, token: string): Promise<Release> => {
|
|||
}
|
||||
})).json();
|
||||
|
||||
return release;
|
||||
return {
|
||||
...release,
|
||||
version: release.tag_name.replace('bun-v', '')
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue