fix(getGithubRelease): correct token pass

This commit is contained in:
Hyro
2022-07-16 18:46:00 +02:00
committed by GitHub
parent c52f1f18be
commit 933334b350

View File

@@ -25,7 +25,7 @@ export default async(version: string, token: string, miscTestBuilds: boolean): P
headers: {
'Content-Type': 'application/json',
'User-Agent': 'setup-bun-github-action',
'Authorization': token
'Authorization': `token ${token}`
}
})).json();
@@ -33,4 +33,4 @@ export default async(version: string, token: string, miscTestBuilds: boolean): P
...release,
version: miscTestBuilds ? `timestamp-v${new Date(release.name).getTime().toString()}` : release.tag_name.replace('bun-v', '')
};
}
}