Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola committed Feb 17, 2025
1 parent 82057ab commit 165fa7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions javascript/packages/cli/src/actions/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,16 @@ const latestPolkadotReleaseURL = async (
name: string,
): Promise<[string, string]> => {
try {
const release_url = `https://api.github.com/repos/paritytech/${repo}/releases`;
debug(`release url: ${release_url}`);
const releases = await fetch(
`https://api.github.com/repos/paritytech/${repo}/releases`,
);

let obj: any;

const allReleases = await releases.json();
debug(`all releases: \n ${allReleases}`);
const release = allReleases.find((r: any) => {
obj = r?.assets?.find((a: any) => a.name === name);
return Boolean(obj);
Expand Down

0 comments on commit 165fa7e

Please sign in to comment.