File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import execa from 'execa'
22import path from 'path'
3- import { promises as fs } from 'fs'
3+ import { promises as fs , readFileSync } from 'fs'
44
55const dirname = path . dirname ( new URL ( import . meta. url ) . pathname )
66
@@ -82,10 +82,10 @@ export default {
8282 `${ releaseType } release v${ version } ` ,
8383 shouldRelease : ( ) => true ,
8484 releases : {
85- extractChangelog : async ( { version, dir } ) => {
85+ extractChangelog : ( { version, dir } ) => {
8686 const changelogPath = path . resolve ( dir , 'CHANGELOG.md' )
8787 try {
88- const changelogFile = await fs . readFile ( changelogPath , 'utf-8' )
88+ const changelogFile = readFileSync ( changelogPath , 'utf-8' )
8989 const ret = extractSpecificChangelog ( changelogFile , version )
9090 return ret
9191 } catch ( err ) {
You can’t perform that action at this time.
0 commit comments