Skip to content

Commit

Permalink
fix: GitHub release notes fails with ERR_INVALID_CALLBACK (#1050)
Browse files Browse the repository at this point in the history
The GitHub release notes feature is failing due to an invalid calling pattern
against readFile. Fixed the call and verified via a local test that the results
match as expected.
  • Loading branch information
njlynch authored Oct 26, 2021
1 parent 4a2c0ba commit d16cbd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/__tests__/expected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3268,7 +3268,7 @@ Resources:
Value: cdk-hnb659fds-assets-712950704752-us-east-1
- Name: SCRIPT_S3_KEY
Type: PLAINTEXT
Value: 168799fb36a5c07de842b73d47e38fc33983aadeec36fca33b73cdc9388dce6a.zip
Value: e12c7af9b638ac5f6e69012fdab4a414bd0c107b6a233304e64b443a621ecd20.zip
- Name: BUILD_MANIFEST
Type: PLAINTEXT
Value: ./build.json
Expand Down
2 changes: 1 addition & 1 deletion lib/publishing/github/create-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function read_release_notes() {
return undefined;
}

return fs.readFile(release_notes_file, 'utf8');
return readFile(release_notes_file, { encoding: 'utf8' });
}

async function read_changelog(version) {
Expand Down

0 comments on commit d16cbd1

Please sign in to comment.