Skip to content

Commit

Permalink
fix: await asset upload (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
writeens committed Apr 5, 2023
1 parent af722e5 commit 0f92a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shipjs/src/step/release/createGitHubRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default async ({ version, config, dir, dryRun }) =>
if (assetPaths.length > 0) {
for (const assetPath of assetPaths) {
const file = path.resolve(dir, assetPath);
octokit.repos.uploadReleaseAsset({
await octokit.repos.uploadReleaseAsset({
file: fs.readFileSync(file),
headers: {
'content-length': fs.statSync(file).size,
Expand Down

0 comments on commit 0f92a1b

Please sign in to comment.