Skip to content

Commit

Permalink
yarn fix (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemnmez authored May 4, 2022
1 parent 9a4c605 commit a8d8afc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion deploy/artifacts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ ts_project(
name = "release_src",
srcs = ["release.ts"],
deps = [
"@npm//mime",
"@npm//@actions/github",
"@npm//@types/node",
"@npm//mime",
],
)

Expand Down
19 changes: 10 additions & 9 deletions deploy/artifacts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ async function main() {
const mappings = process.argv.slice(2).map(v => v.split('='));

const ab = await Promise.all(
mappings.map(async ([name, file]) =>
await Github.rest.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: (await release).data.id,
name,
// https://github.com/octokit/octokit.js/discussions/2087#discussioncomment-646569
data: (await fs.readFile(file)) as unknown as string,
})
mappings.map(
async ([name, file]) =>
await Github.rest.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: (await release).data.id,
name,
// https://github.com/octokit/octokit.js/discussions/2087#discussioncomment-646569
data: (await fs.readFile(file)) as unknown as string,
})
)
);

Expand Down

0 comments on commit a8d8afc

Please sign in to comment.